public IActionResult Create(Detail detail) { detailRepo.Save(detail); return(RedirectToAction("Index")); }
public void Save() { repository.Save(); }