public void newDemand(string subItem, DemandDTO Demand) { switch (subItem) { case "newDemand": DemandsFunction.newDemand(Demand); break; case "updateDemand": DemandsFunction.updateDemand(Demand); break; default: break; } }
public void updateDemand(DemandDTO demand) { DemandsFunction.updateDemand(demand); }