Пример #1
0
 public void SubmitForm(MonthlyHospitalizationEntity areaEntity, string keyValue, UserInfoDto user)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         areaEntity.Modify(Guid.Parse(keyValue), user.UserId);
         service.Update(areaEntity);
     }
     else
     {
         areaEntity.Create(user);
         service.Insert(areaEntity);
     }
 }
 public void Modify(MonthlyHospitalizationEntity inpatientEntity, UserInfoDto user, Guid id)
 {
     inpatientEntity.Modify(id, user.UserId);
     service.Update(inpatientEntity);
 }