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