public async Task <IActionResult> Create(Department model)
        {
            await departmentRepo.AddDepartment(model);

            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public Depatment AddDepartment(Depatment depatment)
 {
     return(_IdepartmentRepo.AddDepartment(depatment));
 }