public Demands Create(Demands demand) { using DemandContext context = new DemandContext(); return(context.Create(demand)); }
public IEnumerable <Demands> GetDemandList(bool isSeeker, bool isVolonteer) { using DemandContext context = new DemandContext(); return(context.GetDemandList(isSeeker, isVolonteer)); }
public Demands Get(int id) { using DemandContext context = new DemandContext(); return(context.Detail(id)); }