Пример #1
0
        public ActionResult Find(FindEmployeViewModel model)
        {
            var service = EmployeClientService.GetChannel();

            var employees = service.GetEmployees(model.FirstName, model.LastName, model.Patronymic);

            return(Find(model, employees));
        }
Пример #2
0
 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());
     }
 }