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 newDemand(DemandDTO newDemand) { DemandsFunction.newDemand(newDemand); }
public DemandDTO SaveDeamnd(DemandDTO demand) { demand.interestedId = Helper.getCurrentUserId(Request.GetRequestContext()); return(DemandsFunction.newDemand(demand)); }