Esempio n. 1
0
 public ServiceResult Update(OutDoorMediaCate model)
 {
     ServiceResult result = new ServiceResult();
     try
     {
         var target = Find(model.ID);
         DB_Service.Attach<OutDoorMediaCate>(target);
         target.CateName = model.CateName;
         target.CateCode = model.CateCode;
         target.PCateCode = model.PCateCode;
         DB_Service.Commit();
     }
     catch (Exception ex)
     {
         result.AddServiceError(Utilities.GetInnerMostException(ex));
     }
     return result;
 }
Esempio n. 2
0
 public void Delete(OutDoorMediaCate model)
 {
     var target = Find(model.ID);
     DB_Service.Remove<OutDoorMediaCate>(target);
     DB_Service.Commit();
 }
Esempio n. 3
0
 public void Create(OutDoorMediaCate model)
 {
     DB_Service.Add<OutDoorMediaCate>(model);
     DB_Service.Commit();
 }