public bool insertEvent(Guid eventID, string _title, string _description, Guid _createdBy, DateTime _date, string _start, string _end, string _location, string _heldBy //bool _isApproved ) { eventsCalendarDataContext objEvents = new eventsCalendarDataContext(); using (objEvents) { brdhc_Event objNewEvent = new brdhc_Event(); objNewEvent.EventId = Guid.NewGuid(); objNewEvent.EventTitle = _title; objNewEvent.EventDescription = _description; objNewEvent.EventCreatedBy = Guid.Parse(_createdBy.ToString()); objNewEvent.EventDate = _date; objNewEvent.EventStartTime = _start; objNewEvent.EventEndTime = _end; objNewEvent.EventLocation = _location; objNewEvent.EventsHeldBy = _heldBy; //objNewEvent.IsApproved = _isApproved; objEvents.brdhc_Events.InsertOnSubmit(objNewEvent); objEvents.SubmitChanges(); return true; } }
partial void Updatebrdhc_Event(brdhc_Event instance);
partial void Deletebrdhc_Event(brdhc_Event instance);
partial void Insertbrdhc_Event(brdhc_Event instance);