public ActionResult Create() { var viewModel = new CreateInputDataViewModel(); viewModel.Accountabilities = _dropdownService.GetRoleGroups().MapTo <SelectListItem>(); viewModel.PeriodeTypes = _dropdownService.GetPeriodeTypesDailyMonthlyYearly().MapTo <SelectListItem>(); viewModel.GroupInputDatas = new List <CreateInputDataViewModel.GroupInputData>(); viewModel.Kpis = _kpiService.GetKpis(new Services.Requests.Kpi.GetKpisRequest { }).Kpis.MapTo <CreateInputDataViewModel.Kpi>(); return(View(viewModel)); }
public void GetDataRowCount(GridViewCustomBindingGetDataRowCountArgs e) { e.DataRowCount = _kpiService.GetKpis(new GetKpisRequest()).Kpis.Count; }