Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
        public JsonResult GetAllTodaysAvailableDoctors()
        {
            var data = AvailableDoctorsViewModel.GetAllAvailableDoctors();

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