public ActionResult updatepatient(int pID)
        {
            patientmanager  pt  = new patientmanager();
            AddpatientModel pat = pt.Getupdatepat(pID);

            if (pat == null)
            {
                ViewBag.Message = "data not found";
                return(RedirectToAction("pat"));
            }
            else
            {
                return(View(pat));
            }
        }