Esempio n. 1
0
 public static List <ef_GetEvent_Result> GetEventByThisUser()
 {
     using (GatheringsEntities _db = new GatheringsEntities())
     {
         return(_db.ef_GetEvent(null, currentUserID).ToList());
     }
 }
Esempio n. 2
0
 public static List <ef_GetEvent_Result> GetEventByEventId(Guid eventID)
 {
     using (GatheringsEntities _db = new GatheringsEntities())
     {
         return(_db.ef_GetEvent(eventID, null).ToList());
     }
 }
Esempio n. 3
0
 // Get
 public static List <ef_GetEvent_Result> GetAllEvents()
 {
     using (GatheringsEntities _db = new GatheringsEntities())
     {
         return(_db.ef_GetEvent(null, null).ToList());
     }
 }