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