public IHttpActionResult Post(List <Employee> list) { List <Employee> l = new List <Employee>(); EmployeeBU employeeBU = new EmployeeBU(); l = employeeBU.GetEmployees(GetIds(list)); if (l == null) { return(NotFound()); } return(Json <List <Employee> >(l)); }
public ActionResult GetEmployee(Employee employee) { EmployeeBU employeeBU = new EmployeeBU(); List <int> list = new List <int>(); List <Employee> listEmployee = new List <Employee>(); if (employee != null) { if (employee.id != 0) { list.Add(employee.id); } } listEmployee = employeeBU.GetEmployees(list); return(View(listEmployee)); }
static void Main(string[] args) { EmployeeBU employeeBU = new EmployeeBU(); List <Employee> Listemployees = new List <Employee>(); //Listemployees = employeeBU.GetEmployees(new List<int> { 1 }); }