public ActionResult Edit(int?Id) { if (!Id.HasValue) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } return(View(repository.Find(Id.Value))); }
public IActionResult DeletePartner(long id) { Partner partner = partner_repo.Find(id); if (partner == null) { return(NotFound()); } partner_repo.Delete(partner); return(Ok()); }