Beispiel #1
0
        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));
        }
Beispiel #2
0
        public JsonResult verifyTimeSlot(DateTime startTime, DateTime endtime, int docId)
        {
            bool data = AvailableDoctorsViewModel.IsTimeSloatReserved(startTime, endtime, docId);

            return(Json(new { result = data }, JsonRequestBehavior.AllowGet));
        }
Beispiel #3
0
        public JsonResult GetAllTodaysAvailableDoctors()
        {
            var data = AvailableDoctorsViewModel.GetAllAvailableDoctors();

            return(Json(new { result = data }, JsonRequestBehavior.AllowGet));
        }