public ICollection <SelectListItem> GetAllVehicleTypelookUpdata() { return(_vehicleTypeManager.GetAllVehicle().Select(c => new SelectListItem { Value = c.Id.ToString(), Text = c.Name }).ToList()); }
// GET: VehicleType public ActionResult Index() { var vehicle = _vehicleTypeManager.GetAllVehicle(); if (vehicle == null) { return(NotFound()); } var vehiclelist = _mapper.Map <List <VehicleTypeViewModel> >(vehicle); return(View(vehiclelist)); }