public int DeleteMeeting(int id)
        {
            tblMeetingFirst tb = _db.tblMeetingFirsts.Where(u => u.ID == id).FirstOrDefault();

            _db.tblMeetingFirsts.Remove(tb);
            return(_db.SaveChanges());
        }
        public int UpdateMeetingOne(BOMeetingFirst model)
        {
            tblMeetingFirst meeting = _db.tblMeetingFirsts.Where(u => u.ID == model.ID).FirstOrDefault();

            meeting.VIPUser   = model.VIPuser;
            meeting.Users     = model.Users;
            meeting.StartTime = model.StartTime;
            meeting.EndTime   = model.EndTime;
            meeting.Date      = Convert.ToDateTime(model.Date);

            return(_db.SaveChanges());
        }
        public int AddMeetingFirst(BOMeetingFirst model)
        {
            tblMeetingFirst meeting = new tblMeetingFirst();

            meeting.VIPUser   = model.VIPuser;
            meeting.Users     = model.Users;
            meeting.StartTime = model.StartTime;
            meeting.EndTime   = model.EndTime;
            meeting.Date      = Convert.ToDateTime(model.Date);
            _db.tblMeetingFirsts.Add(meeting);
            return(_db.SaveChanges());
        }