public ActionResult CreateCar(Vehicle car) { var manager = new VehicleManager(); var response = manager.AddCar(car); return View("Home"); }
public ActionResult InfoList() { var manager = new VehicleManager(); var infos = manager.GetAllRequests().Data; return View("_RequestInfoList", infos); }
public ActionResult Index(RequestInfo info) { var manager = new VehicleManager(); var response = manager.AddRequest(info); return View("RequestInfo"); }
public ActionResult CarList() { var manager = new VehicleManager(); var cars = manager.GetAllCars().Data; return View("_userCarList", cars); }
public ActionResult AdminIndex() { var manager = new VehicleManager(); var cars = manager.GetAllCars().Data; return View("_CarList", cars); }
public ActionResult Delete(int VehicleID) { var manager = new VehicleManager(); manager.DeleteCarByID(VehicleID); return Json(new { route = "/Home/Index" }); }
public ActionResult ChangeStatus(int sID, int rID) { var manager = new VehicleManager(); manager.UpdateRequestStatus(sID, rID); var status = manager.GetAllRequests().Data; return View("_RequestInfoList", status); }
public Vehicle Get(int id) { var manager = new VehicleManager(); var data = manager.GetCarByID(id).Data; return data; }