public JsonResult saveNewAppointment(DateTime timeStart, DateTime TimeEnd, int docId) { var currentUserId = Convert.ToInt32(Session["currentUserId"].ToString()); var data = AvailableDoctorsViewModel.AddNewAppointment(timeStart, TimeEnd, docId, currentUserId); return(Json(new { result = data }, JsonRequestBehavior.AllowGet)); }
public JsonResult verifyTimeSlot(DateTime startTime, DateTime endtime, int docId) { bool data = AvailableDoctorsViewModel.IsTimeSloatReserved(startTime, endtime, docId); return(Json(new { result = data }, JsonRequestBehavior.AllowGet)); }
public JsonResult GetAllTodaysAvailableDoctors() { var data = AvailableDoctorsViewModel.GetAllAvailableDoctors(); return(Json(new { result = data }, JsonRequestBehavior.AllowGet)); }