public ActionResult Delete(SportsSide.DAL.AREA area) { var result = webApi.DeleteArea(area); if (result == false) { TempData["Hata"] = "Bir hata oluştu."; return(View(area)); } return(RedirectToAction("Index", "Areas")); }
public ActionResult Edit(SportsSide.DAL.AREA model) { if (!ModelState.IsValid) { return(View(model)); } var result = webApi.PutArea(model); if (result == false) { TempData["Hata"] = "Bir hata oluştu."; return(View(model)); } return(RedirectToAction("Index", "Areas")); }