public ActionResult Create() { List <SelectListItem> fsList = featureSetService.GetAll(AuthenticationHelper.CompanyId.Value, AuthenticationHelper.UserRole).Select(x => new SelectListItem { Text = x.Name, Value = x.Id.ToString() }).ToList(); UserCreateModel model = new UserCreateModel(fsList); return(View(model)); }
public ActionResult FeatureSet(FeatureSetListModel model) { int totalRecords = 0; model.FeatureSet = featureSetService.GetAll(long.MaxValue).Select(x => new FeatureSetModel(x)).ToList(); model.TotalRecords = totalRecords; return(View(model)); }