Пример #1
0
 public void SubmitForm(UserFansEntity entity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         entity.Modify(keyValue);
         service.Update(entity);
     }
     else
     {
         entity.Create();
         service.Insert(entity);
     }
 }
Пример #2
0
 public void Delete(UserFansEntity entity)
 {
     service.Delete(entity);
 }