Example #1
0
        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;
            }
        }
Example #2
0
 public SupplyDTO GetSupply([FromUri] int id)
 {
     return(SupplyFunction.GetSupply(id));
 }
Example #3
0
        public List <SupplyDTO> showSupply()
        {
            var id = Helper.getCurrentUserId(Request.GetRequestContext());

            return(SupplyFunction.showSupplies(id));
        }
Example #4
0
 public void deleteSupply(int id)
 {
     SupplyFunction.deleteSupply(id);
 }
Example #5
0
 public List <SupplyDTO> getAllSupplies()
 {
     return(SupplyFunction.getAllSupplies());
 }
Example #6
0
 public List <SupplyDTO> getFilterList(DemandDTO demand)
 {
     //demand.interestedId = Helper.getCurrentUserId(Request.GetRequestContext());
     //DemandsFunction.newDemand(demand);
     return(SupplyFunction.getFilterList(demand));
 }
Example #7
0
 public void delete(int id)
 {
     SupplyFunction.deleteSupplyByCar(id);
     carFunction.deleteCar(id);
 }
Example #8
0
 //[AllowAnonymous]
 public CarDTO lookForSuggest(DemandDTO Demand)
 {
     return(SupplyFunction.lookForSuggest(Demand));
 }
Example #9
0
 public void updateSupply(SupplyDTO supply)
 {
     SupplyFunction.updateSupply(supply);
 }
Example #10
0
 public void deleteSupply(int Supply)
 {
     SupplyFunction.deleteSupply(Supply);
 }
Example #11
0
 public void newSupply(SupplyDTO newSupply)
 {
     SupplyFunction.newSupply(newSupply);
 }