public ActionResult DeleteConfirmed(Guid id)
        {
            ChurchClaims churchClaims = db.ChurchClaims.Find(id);

            db.ChurchClaims.Remove(churchClaims);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,UserId,MinistryId")] ChurchClaims churchClaims)
 {
     if (ModelState.IsValid)
     {
         db.Entry(churchClaims).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MinistryId = new SelectList(db.Ministries, "ID", "Name", churchClaims.MinistryId);
     return(View(churchClaims));
 }
        public ActionResult Create([Bind(Include = "ID,UserId,MinistryId")] ChurchClaims churchClaims)
        {
            if (ModelState.IsValid)
            {
                churchClaims.ID = Guid.NewGuid();
                db.ChurchClaims.Add(churchClaims);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            ViewBag.MinistryId = new SelectList(db.Ministries, "ID", "Name", churchClaims.MinistryId);
            return(View(churchClaims));
        }
        // GET: ChurchClaims/Details/5
        public ActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ChurchClaims churchClaims = db.ChurchClaims.Find(id);

            if (churchClaims == null)
            {
                return(HttpNotFound());
            }
            return(View(churchClaims));
        }
        // GET: ChurchClaims/Edit/5
        public ActionResult Edit(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ChurchClaims churchClaims = db.ChurchClaims.Find(id);

            if (churchClaims == null)
            {
                return(HttpNotFound());
            }
            ViewBag.MinistryId = new SelectList(db.Ministries, "ID", "Name", churchClaims.MinistryId);
            return(View(churchClaims));
        }