|
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using BLL.Interface;
namespace WinClient.Presenters
{
public class Employee : IPresenter
{
private IBLL employeeBLL = null;
public Employee()
{
employeeBLL = (IBLL)WinClient.ApplicationContext["EmployeeBLL"];
}
#region IPresenter Members
public DataTable GetData(string ID)
{
if (ID == null || ID.Length == 0 )
{
return employeeBLL.GetAll();
}
else
{
return employeeBLL.GetById(ID);
}
}
public bool SaveOrUpdate(DataTable entity)
{
return employeeBLL.SaveOrUpdate(entity);
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.