public IActionResult edit(DepartmentVM dpt)
 {
     if (ModelState.IsValid)
     {
         repo.edit(dpt);
         return(RedirectToAction("index"));
     }
     else
     {
         return(View(dpt));
     }
 }