コード例 #1
0
 public bool updateCollectionPoint(string DeptID, string CPID)
 {
     BusinessLogic.CollectionPointController BL = new BusinessLogic.CollectionPointController();
     if (BL.updateCollectionPoint(DeptID, CPID))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return(true);
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return(false);
     }
 }
 public bool updateCollectionPoint(string DeptID, string CPID)
 {
     BusinessLogic.CollectionPointController BL = new BusinessLogic.CollectionPointController();
     if(BL.updateCollectionPoint(DeptID, CPID))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return true;
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return false;
     }
 }