public IActionResult Edit(Detail detail)
 {
     detailRepo.Edit(detail);
     return(RedirectToAction("Index"));
 }