public void CreateAndSaveMeeting(Meeting m) { try { Appointment a = new Appointment(service); a.Subject = m.Title; a.Body = m.Description; a.Start = DataHelper.StringToDate(m.Start, DataHelper.DateStringLong); a.End = DataHelper.StringToDate(m.End, DataHelper.DateStringLong); a.Location = m.Location; foreach (string email in m.Invited) { a.RequiredAttendees.Add(email); } a.Save(SendInvitationsMode.SendToAllAndSaveCopy); } catch (Exception e) { throw new ServiceException("Cannot create meeting", e); } }
public ActionResult SendMeeting(Meeting meeting) { _bus.CreateAndSaveMeeting(meeting); return Json(new { ok = true }); }
public ActionResult DeclineMeeting(Meeting meeting) { _bus.RejectMeetingRequest(meeting.Id); return Json(new { ok = true }); }
public ActionResult ApproveMeeting(Meeting meeting) { _bus.ApproveMeetingRequest(meeting.Id); return Json(new { ok = true }); }
internal void CreateAndSaveMeeting(Meeting meeting) { _service.CreateAndSaveMeeting(meeting); }
public void SendMeeting(Meeting m) { _service.CreateAndSaveMeeting(m); }