public IActionResult Edit(string id) { try { if (string.IsNullOrEmpty(id)) { return(RedirectToAction("ViewAllVenues", "AllVenue")); } Equipment EquipmentEdit = _IEquipment.GetEquipmentByID(Convert.ToInt32(id)); return(View("Edit", EquipmentEdit)); } catch (Exception) { throw; } }