public async Task <IActionResult> Add() { var barVM = new AddBarViewModel(); var cities = await cityServices.GetAllDTOAsync(); barVM.AllCities = cities.Select(c => new SelectListItem(c.Name, c.Id.ToString())).ToList(); return(View(barVM)); }
public async Task <IActionResult> Add() { var barVM = new AddBarViewModel(); var cities = await cityServices.GetAllDTOAsync(); barVM.AllCities = cities.Select(c => new SelectListItem(c.Name, c.Id.ToString())).ToList(); return(View(barVM)); }