Esempio n. 1
0
        public JsonResult Fees(Allinfo alldata)
        {
            int getid = Convert.ToInt32(alldata.id);

            var result = HttpUtility.HtmlEncode(alldata.fee);



            var confirmappoint = (from e in db.UserAppoints where e.id == getid select e).FirstOrDefault();


            confirmappoint.otherfee     = result;
            confirmappoint.treatapprove = 1;

            db.SaveChanges();


            return(Json("Appointment Confirmed"));
        }
Esempio n. 2
0
        public JsonResult PatientRescheduled(Allinfo alldata)
        {
            int getid = Convert.ToInt32(alldata.id);

            var result = Convert.ToDateTime(alldata.time);



            var confirmappoint = (from e in db.UserAppoints where e.id == getid select e).FirstOrDefault();

            confirmappoint.dateofappoint = Convert.ToDateTime(alldata.date);
            confirmappoint.timeofvisit   = result.ToString("hh:mm:ss tt", CultureInfo.CurrentCulture);
            confirmappoint.treatapprove  = 0;

            db.SaveChanges();


            return(Json("Appointment Rescheduled"));
        }