public ActionResult DeleteParent(int id)
        {
            DBSmartSchoolWebPortalEntities111 ent = new DBSmartSchoolWebPortalEntities111();
            var parent = ent.Parents.Where(x => x.Id == id).First();

            ent.Entry(parent).State = System.Data.Entity.EntityState.Deleted;
            ent.SaveChanges();
            string message = "Parent is Deleted";

            return(RedirectToAction("Account", "Management", new { Message = message }));
        }
        public ActionResult DeleteFee(int id)
        {
            DBSmartSchoolWebPortalEntities111 db = new DBSmartSchoolWebPortalEntities111();
            var fee = db.StudentFees.Where(x => x.Id == id).First();

            db.Entry(fee).State = System.Data.Entity.EntityState.Deleted;

            string message = "Student fee Deleted!";

            return(RedirectToAction("Account", "Management", new { Message = message }));
        }
        public ActionResult DeleteHostel(int id)
        {
            DBSmartSchoolWebPortalEntities111 db = new DBSmartSchoolWebPortalEntities111();
            var hostel = db.Hostels.Where(x => x.Id == id).First();

            db.Entry(hostel).State = System.Data.Entity.EntityState.Deleted;

            db.SaveChanges();
            string message = "Hostel is Deleted";

            return(RedirectToAction("Account", "Management", new { Message = message }));
        }