public ActionResult Delete(FormCollection formCollection) { if (formCollection["ButtonSave"] != null) { Item.ID_Company = int.Parse(formCollection["ID_Company"]); Item.DeleteItem(Item); return(View("List", Item.SelectItems())); } else if (formCollection["ButtonView"] != null) { return(View("View", Item.SelectItem(int.Parse(formCollection["ID_Company"])))); } else { return(View("Delete", Item.SelectItem(int.Parse(formCollection["ID_Company"])))); } }