public ActionResult Delete(int?id)
        {
            tblDoctorType   D = db.tblDoctorTypes.SingleOrDefault(x => x.intTypeId == id);
            DoctortypeModel N = new DoctortypeModel()
            {
                TypeId = D.intTypeId,
                Type   = D.strType,
            };

            return(View(N));
        }
        public ActionResult Create(DoctortypeModel D)
        {
            tblDoctorType dt = new tblDoctorType();

            dt.intTypeId = D.TypeId;
            dt.strType   = D.Type;

            db.tblDoctorTypes.Add(dt);
            db.SaveChanges();

            return(RedirectToAction("Index"));
        }
        public ActionResult Edit(DoctortypeModel dt)
        {
            tblDoctorType d = db.tblDoctorTypes.SingleOrDefault(x => x.intTypeId == dt.TypeId);


            if (d != null)
            {
                d.intTypeId = dt.TypeId;
                d.strType   = dt.Type;



                db.SaveChanges();
            }
            return(RedirectToAction("Index"));
        }