Ejemplo 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.PID = model.PID;
         DB_Service.Commit();
     }
     catch (Exception ex)
     {
         result.AddServiceError(Utilities.GetInnerMostException(ex));
     }
     return result;
 }
Ejemplo n.º 2
0
 public void Delete(OutDoorMediaCate model)
 {
     var target = Find(model.ID);
     DB_Service.Remove<OutDoorMediaCate>(target);
     DB_Service.Commit();
 }
Ejemplo n.º 3
0
 public void Create(OutDoorMediaCate model)
 {
     DB_Service.Add<OutDoorMediaCate>(model);
     DB_Service.Commit();
 }