//Manage Vehicles Fleet - for the main admin page public ActionResult vehiclesFleetIndex() { try { using (VehiclesFleetLogic logic = new VehiclesFleetLogic()) { return(View("VehiclesFleet", logic.GetAllVehiclesFleet())); } } catch (Exception) { ViewBag.Error = "We have problem on the server, Please try again later!"; return(View("VehiclesFleet", new List <VehiclesFleet>())); } }