public void Update(CalendarEvent eventUpdate)
        {
            var dataUpdate = db.Calendar.Find(eventUpdate.id);

            dataUpdate.Location = eventUpdate.Location;
            dataUpdate.Description = eventUpdate.Description;
            dataUpdate.Title = eventUpdate.Title;
            dataUpdate.text = eventUpdate.text;
            dataUpdate.start_date = eventUpdate.start_date;
            dataUpdate.end_date = eventUpdate.end_date;

            db.SaveChanges();
        }
        private int Insert(CalendarEvent eventInsert)
        {
            db.Calendar.Add(eventInsert);
            db.SaveChanges();

            return eventInsert.id;
        }
 private void Delete(CalendarEvent eventDelete)
 {
     var dataDelete = db.Calendar.Find(eventDelete.id);
     db.Calendar.Remove(dataDelete);
     db.SaveChanges();
 }