public ActionResult Create(EmployeesViewModel model)
 {
     if (EmployeesDAL.Add(model))
     {
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View(model));
     }
 }
Example #2
0
 public static void Add(EmployeesDTO employeesTypes)
 {
     EmployeesDAL.Add(EmployeesCast.ToDAL(employeesTypes));
 }