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