public async Task <ActionResult> Create([Bind(Include = "ReasonsForClosureID,Description")] ReasonsForClosure entity) { if (ModelState.IsValid) { await genericRepository.CreateAsync(entity); } return(RedirectToAction("Index")); }
public async Task <ActionResult> Delete(int id) { ReasonsForClosure entity = await genericRepository.GetByIDAsync(id); if (entity == null) { return(HttpNotFound()); } return(View(entity)); }