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