public bool updateSupplierRank(string supplierId, string rank)
 {
     BusinessLogic.SupplierController BL = new BusinessLogic.SupplierController();
     if (BL.updateSupplierRank(supplierId,rank))
     {
         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 createSupplier(Supplier s)
 {
     BusinessLogic.SupplierController BL = new BusinessLogic.SupplierController();
     if (BL.createSupplier(s))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return true;
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return false;
     }
 }
예제 #3
0
 public bool updateSupplierRank(string supplierId, string rank)
 {
     BusinessLogic.SupplierController BL = new BusinessLogic.SupplierController();
     if (BL.updateSupplierRank(supplierId, rank))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return(true);
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return(false);
     }
 }
예제 #4
0
 public bool createSupplier(Supplier s)
 {
     BusinessLogic.SupplierController BL = new BusinessLogic.SupplierController();
     if (BL.createSupplier(s))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return(true);
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return(false);
     }
 }
 public List<Supplier> getSupplierList()
 {
     BusinessLogic.SupplierController BL = new BusinessLogic.SupplierController();
     return BL.getSupplierList();
 }
 public Supplier getBySupplierID(string supplierid)
 {
     BusinessLogic.SupplierController BL = new BusinessLogic.SupplierController();
     return BL.getBySupplierID(supplierid);
 }
예제 #7
0
 public List <Supplier> getSupplierList()
 {
     BusinessLogic.SupplierController BL = new BusinessLogic.SupplierController();
     return(BL.getSupplierList());
 }
예제 #8
0
 public Supplier getBySupplierID(string supplierid)
 {
     BusinessLogic.SupplierController BL = new BusinessLogic.SupplierController();
     return(BL.getBySupplierID(supplierid));
 }