public ActionResult Delete(int id, FloorViewModel model) { try { bool result = _floorService.RemoveFloor(id); if (result) { return(RedirectToAction(nameof(Index))); } throw new Exception(); } catch { ModelState.AddModelError(string.Empty, "Ooops! Something went wrong!"); return(View()); } }