public ActionResult DeleteConfirmed(int id)
        {
            Mothers_Data mothers_Data = db.Mothers_Data.Find(id);

            db.Mothers_Data.Remove(mothers_Data);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "mothersId,communityHealthWorkerID,firstName,lastName,dOb,address,zip,phone,email,dueDate")] Mothers_Data mothers_Data)
 {
     if (ModelState.IsValid)
     {
         db.Entry(mothers_Data).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(mothers_Data));
 }
        // GET: Mothers_Data/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Mothers_Data mothers_Data = db.Mothers_Data.Find(id);

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