public ActionResult StoreTypeList() { var result = storeTypeService.GetAllStoreType(); var newModel = mapper.Map <IList <StoreTypeDto>, IList <StoreTypeViewModel> >(result); return(View(newModel)); }
private IList <SelectListItem> CreateStoreTypeList() { var resultStoreType = storeTypeService.GetAllStoreType(); return(resultStoreType.Select(x => new SelectListItem { Value = x.Id.ToString(), Text = x.Name }).ToList()); }