// GET: ChemistView/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ChemistView details = db.ChemistViews.Find(id);

            if (details == null)
            {
                return(HttpNotFound());
            }
            return(View(details));
        }
        public ActionResult search(int?id)
        {
            if (id == null)
            {
                new HttpNotFoundResult("Enter Id");
            }
            ChemistView patientInfo = db.ChemistViews.Find(id);

            if (patientInfo == null)
            {
                TempData["ErrorMessage"] = "PATIENT NOT FOUND";
                return(RedirectToAction("Index"));
            }

            return(View(patientInfo));
        }