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; } }
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); } }
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); }
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)); }