public IActionResult SaveExpertise(TrlAppExpertiseDTO model) { if (ModelState.IsValid) { _trlAppProcessService.SaveExpertise(model); return(Json(new { success = true })); } return(PartialView("_ModalTrlExpertiseEdit", model)); }
public void SaveExpertise(TrlAppExpertiseDTO model) { var trl = _dataService.GetEntity <TrlApplication>(p => p.Id == model.Id).SingleOrDefault(); if (trl == null) { return; } var orgUnitId = trl.OrgUnitId; _objectMapper.Map(model, trl); trl.ExpertiseResult = model.ExpertiseResultEnum; trl.PerformerOfExpertise = model.PerformerOfExpertiseId; trl.OrgUnitId = orgUnitId; _dataService.SaveChanges(); _limsExchangeService.UpdateExpertiseTRL(model); // сделал, но нет экспертизы в заяве , }