public ActionResult Delete(int id) { Designer designer = FurnitureService.GetDesignerById(id); if (designer == null) { return(View("NotFound")); } else if (designer.Furnitures.Count() > 0) { return(View("NotDeleted", new NotDeletedDesignerViewModel { Designer = designer })); } else { FurnitureService.DeleteDesigner(designer); return(View("Deleted")); } }