public bool Create(SupplierModel supplierModel) { var body = JsonConvert.SerializeObject(supplierModel); bool SupplierCreate = ServerResponse.Invoke <bool>("api/supplier/create", body, "Post"); return(SupplierCreate); }
public List <ProductStyleModel> GetAll() { var body = ""; List <ProductStyleModel> ProductStyleModelList = ServerResponse.Invoke <List <ProductStyleModel> >("api/productStyle/getDetails", body, "get"); return(ProductStyleModelList); }
public List <string> GetGridSize(int?id) { var body = ""; List <string> SizeGridListById = ServerResponse.Invoke <List <string> >("api/sizeGrid/getGridSize?id=" + id, body, "get"); return(SizeGridListById); }
public StaffStatusModel GetById(int?id) { var body = ""; StaffStatusModel StaffRoleModelById = ServerResponse.Invoke <StaffStatusModel>("api/staffStatus/getDetail?id=" + id, body, "GET"); return(StaffRoleModelById); }
public ImageModel Create(ImageModel imageModel) { var body = JsonConvert.SerializeObject(imageModel); ImageModel ImageCreate = ServerResponse.Invoke <ImageModel>("api/image/create", body, "Post"); return(ImageCreate); }
public AreaModel GetById(int?id) { var body = ""; AreaModel AreaById = ServerResponse.Invoke <AreaModel>("api/area/getDetail?id=" + id, body, "get"); return(AreaById); }
public AreaModel Edit(AreaModel areaModel) { var body = JsonConvert.SerializeObject(areaModel); AreaModel AreaEdit = ServerResponse.Invoke <AreaModel>("api/area/edit?id=" + areaModel.Id, body, "POST"); return(AreaEdit); }
public bool CheckProductSKU(string chk1, string chk2) { // var body = JsonConvert.SerializeObject(chk1,chk2); var CheckBranchCode = ServerResponse.Invoke <bool>("api/product/checkProductSKU?chk1=" + chk1 + "&chk2=" + chk2, " ", "GET"); return(CheckBranchCode); }
public bool Create(ProductModel productModel) { var body = JsonConvert.SerializeObject(productModel); bool ProductCreate = ServerResponse.Invoke <bool>("api/product/create", body, "Post"); return(ProductCreate); }
public SupplierModel Delete(SupplierModel supplierModel) { var body = JsonConvert.SerializeObject(supplierModel); SupplierModel SupplierDelete = ServerResponse.Invoke <SupplierModel>("api/supplier/Delete?id=" + supplierModel.Id, body, "POST"); return(SupplierDelete); }
public ProductModel GetById(int?id) { var body = ""; ProductModel ProductModelById = ServerResponse.Invoke <ProductModel>("api/product/getDetail?id=" + id, body, "GET"); return(ProductModelById); }
public bool CheckSupplierCode(string chk) { var body = JsonConvert.SerializeObject(chk); var CheckSupplierCode = ServerResponse.Invoke <bool>("api/supplier/checkSupplierCode?chk=" + chk, body, "POST"); return(CheckSupplierCode); }
public bool Edit(SupplierModel supplierModel) { var body = JsonConvert.SerializeObject(supplierModel); bool SupplierEdit = ServerResponse.Invoke <bool>("api/supplier/edit?id=" + supplierModel.Id, body, "POST"); return(SupplierEdit); }
public SupplierModel ExcelUpload(SupplierModel supplierModel) { var body = JsonConvert.SerializeObject(supplierModel); SupplierModel SupplierCreate = ServerResponse.Invoke <SupplierModel>("api/supplier/supplierExcelData", body, "Post"); return(SupplierCreate); }
public Dictionary <int, ProductImport> ProductImportFilter(Dictionary <int, ProductImport> list) { var body = JsonConvert.SerializeObject(list); var obj = ServerResponse.Invoke <Dictionary <int, ProductImport> >("api/product/getProductImportFilter", body, "POST"); return(obj); }
public bool Edit(ProductModel productModel) { var body = JsonConvert.SerializeObject(productModel); bool ProductEdit = ServerResponse.Invoke <bool>("api/product/edit", body, "POST"); return(ProductEdit); }
public MarkDownProduct GetByIdMarkDown(int?id) { var body = ""; MarkDownProduct ProductModelById = ServerResponse.Invoke <MarkDownProduct>("api/product/getDetail?id=" + id, body, "GET"); return(ProductModelById); }
public bool EditByMark(MarkDownModel model) { var body = JsonConvert.SerializeObject(model); bool ProductEdit = ServerResponse.Invoke <bool>("api/product/editByMark", body, "POST"); return(ProductEdit); }
public bool Create(AreaModel areaModel) { var body = JsonConvert.SerializeObject(areaModel); bool AreaCreate = ServerResponse.Invoke <bool>("api/area/create", body, "Post"); return(AreaCreate); }
public List <AllProductDetailModel> SearchProduct(ProdSearch prodSearch) { var body = JsonConvert.SerializeObject(prodSearch); List <AllProductDetailModel> productModelList = ServerResponse.Invoke <List <AllProductDetailModel> >("api/product/ProductSearch", body, "Post"); return(productModelList); }
public AreaModel Delete(AreaModel areaModel) { var body = JsonConvert.SerializeObject(areaModel); AreaModel AreaDelete = ServerResponse.Invoke <AreaModel>("api/area/Delete?id=" + areaModel.Id, body, "POST"); return(AreaDelete); }
public bool CheckProductSKU(ProductModel model) { var body = JsonConvert.SerializeObject(model); var CheckProductSKU = ServerResponse.Invoke <bool>("api/product/checkProductSKU", body, "POST"); return(CheckProductSKU); }
public List <ImageModel> GetAllImage() { var body = ""; List <ImageModel> ImageModels = ServerResponse.Invoke <List <ImageModel> >("api/image/getDetails", body, "get"); return(ImageModels); }
public ProductModel Delete(ProductModel productModel) { var body = JsonConvert.SerializeObject(productModel); var ProductDelete = ServerResponse.Invoke <ProductModel>("api/product/Delete?id=" + productModel.Id, body, "POST"); return(ProductDelete); }
public bool CheckBarcode(string Barcode) { var body = JsonConvert.SerializeObject(Barcode); var CheckBarCode = ServerResponse.Invoke <bool>("api/product/checkBarCode?chk=" + Barcode, body, "POST"); return(CheckBarCode); }
public bool CheckColorCode(int?id, int ColorId) { var body = JsonConvert.SerializeObject(ColorId); var CheckColorName = ServerResponse.Invoke <bool>("api/product/checkColorName?id=" + id + "&ColorId=" + ColorId, body, "POST"); return(CheckColorName); }
public List <string> GetCode() { var body = ""; List <string> ProductStyleCodeList = ServerResponse.Invoke <List <string> >("api/productStyle/getCode", body, "get"); return(ProductStyleCodeList); }
public bool CheckSupplier(int?id, int SupplierId) { var body = JsonConvert.SerializeObject(SupplierId); var CheckSupplier = ServerResponse.Invoke <bool>("api/product/checkSupplier?id=" + id + "&SupplierId=" + SupplierId, body, "POST"); return(CheckSupplier); }
public bool Create(SizeGridModel sizeGridModel) { var body = JsonConvert.SerializeObject(sizeGridModel); bool SizeGridCreate = ServerResponse.Invoke <bool>("api/sizeGrid/create", body, "Post"); return(SizeGridCreate); }
public SupplierModel GetById(int?id) { var body = ""; SupplierModel SupplierById = ServerResponse.Invoke <SupplierModel>("api/supplier/getDetail?id=" + id, body, "get"); return(SupplierById); }