public async Task <IActionResult> Create(Department model) { await departmentRepo.AddDepartment(model); return(RedirectToAction("Index")); }
public Depatment AddDepartment(Depatment depatment) { return(_IdepartmentRepo.AddDepartment(depatment)); }
public async Task <IActionResult> Create(Department model) { await departmentRepo.AddDepartment(model); return(RedirectToAction("Index")); }
public Depatment AddDepartment(Depatment depatment) { return(_IdepartmentRepo.AddDepartment(depatment)); }