public async Task <ActionResult> Edit(int Id) { var model = companyRepo.GetById(Id); await InitSelect(model.InformUserId.HasValue?model.InformUserId.Value : 0, model.CompanyType, model.ParentCompanyId); model.KPIPercent = Math.Round(model.KPIPercent.Value, 2); model.KPIValue = Math.Round(model.KPIValue.Value / 10000, 0); return(View(model)); }