public ActionResult VehiclesEdit(int?id) { var model = new MarketVehicleViewModel(); if (id.HasValue && id > 0) { model = _marketServices.GetMarketVehicleById(id.Value); } return(View("~/Views/MarketsVehicle/_CreateEdit.cshtml", model)); }