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;
 }
 public void Delete(OutDoorMediaCate model)
 {
     var target = Find(model.ID);
     DB_Service.Remove<OutDoorMediaCate>(target);
     DB_Service.Commit();
 }
 public void Create(OutDoorMediaCate model)
 {
     DB_Service.Add<OutDoorMediaCate>(model);
     DB_Service.Commit();
 }