Esempio n. 1
0
 // GET: Employee/Create
 public ActionResult Create()
 {
     ViewBag.DepartamentId     = new SelectList(AutoMapperConfiguration.Instance.Mapper.Map <IEnumerable <DepartamentDTO> > (_departamentService.GetAll()), "Id", "Name");
     ViewBag.SalaryTabulatorId = new SelectList(AutoMapperConfiguration.Instance.Mapper.Map <IEnumerable <SalaryTabulatorDTO> >(_salaryTabulatorService.GetAll()), "Id", "Key");
     return(View());
 }