Esempio n. 1
0
        public OrgEvent getEventByEventID(int eventID)
        {
            OrgEvent orgevent = new OrgEvent();

            try
            {
                //forget the OR statement and just send 0 as the organization ID to get just this event.
                var even = dataContext.sp_GetOrgEvent(eventID, 0).First();

                orgevent.Event_ID               = even.Event_ID;
                orgevent.Time                   = even.Time;
                orgevent.Title                  = even.Title;
                orgevent.Driver1                = even.Driver1;
                orgevent.Driver2                = even.Driver2;
                orgevent.Organization_ID        = even.Organization_ID;
                orgevent.OrganizationWorkedWith = even.OrganizationWorkedWith;
                orgevent.OnOffCampus            = even.OnOffCampus;
                orgevent.ContactName            = even.ContactName;
                orgevent.Location               = even.Location;
                orgevent.Date                   = even.Date;
                orgevent.Description            = even.Description;
                orgevent.ContactPhone           = even.ContactPhone;
                orgevent.ContactEmail           = even.ContactEmail;
                orgevent.BusRental              = even.BusRental;
                orgevent.VanRental              = even.VanRental;
                orgevent.DollarsSpentByOrg      = even.DollarsSpentByOrg;
                orgevent.DollarsSpentByPartner  = even.DollarsSpentByPartner;
                orgevent.HoursVolunteered       = even.HoursVolunteered;
                orgevent.Attendance             = even.Attendance;
                orgevent.CreatedByUser          = even.CreatedByUser;
                orgevent.RoomReserved           = even.RoomReserved;
                orgevent.Marketing              = even.Marketing;
                orgevent.Catering               = even.Catering;
                orgevent.SignupForm             = even.SignupForm;
                orgevent.ActivityWaiver         = even.ActivityWaiver;
                orgevent.CUNight                = even.CUNight;
            }
            catch (Exception)
            {
            }
            return(orgevent);
        }