public ActionResult Find(FindEmployeViewModel model) { var service = EmployeClientService.GetChannel(); var employees = service.GetEmployees(model.FirstName, model.LastName, model.Patronymic); return(Find(model, employees)); }
public ActionResult Find( FindEmployeViewModel model, IEnumerable <Employe> match) { if (match != null) { ViewBag.Employees = Mapper.Map <IEnumerable <Employe>, IEnumerable <GetEmployeViewModel> >(match); } if (model != null) { return(View(model)); } else { return(View()); } }