public void newSupply(string subItem, SupplyDTO Supply) { switch (subItem) { case "newSupply": Supply.supplyU = Helper.getCurrentUserId(Request.GetRequestContext()); SupplyFunction.newSupply(Supply); break; case "updateSupply": SupplyFunction.updateSupply(Supply); break; default: break; } }
public SupplyDTO GetSupply([FromUri] int id) { return(SupplyFunction.GetSupply(id)); }
public List <SupplyDTO> showSupply() { var id = Helper.getCurrentUserId(Request.GetRequestContext()); return(SupplyFunction.showSupplies(id)); }
public void deleteSupply(int id) { SupplyFunction.deleteSupply(id); }
public List <SupplyDTO> getAllSupplies() { return(SupplyFunction.getAllSupplies()); }
public List <SupplyDTO> getFilterList(DemandDTO demand) { //demand.interestedId = Helper.getCurrentUserId(Request.GetRequestContext()); //DemandsFunction.newDemand(demand); return(SupplyFunction.getFilterList(demand)); }
public void delete(int id) { SupplyFunction.deleteSupplyByCar(id); carFunction.deleteCar(id); }
//[AllowAnonymous] public CarDTO lookForSuggest(DemandDTO Demand) { return(SupplyFunction.lookForSuggest(Demand)); }
public void updateSupply(SupplyDTO supply) { SupplyFunction.updateSupply(supply); }
public void deleteSupply(int Supply) { SupplyFunction.deleteSupply(Supply); }
public void newSupply(SupplyDTO newSupply) { SupplyFunction.newSupply(newSupply); }