Example #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 Insert(MonthlyHospitalizationEntity inpatientEntity, UserInfoDto user)
 {
     inpatientEntity.Create(user);
     service.Insert(inpatientEntity);
 }