public ActionResult DeleteConfirmed(int id)
        {
            Yogacenter yogacenter = db.Yogacenters.Find(id);

            db.Yogacenters.Remove(yogacenter);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ProcessingNumberId,FullName,DateOfBirth,Gender,Nationality,State,City,PermanantAddress,PinCode,PhoneNumber,Date,Email,AcademicQualification,Course,HealthStatus")] Yogacenter yogacenter)
 {
     if (ModelState.IsValid)
     {
         db.Entry(yogacenter).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(yogacenter));
 }
        // GET: /Yogacenter/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Yogacenter yogacenter = db.Yogacenters.Find(id);

            if (yogacenter == null)
            {
                return(HttpNotFound());
            }
            return(View(yogacenter));
        }