public ActionResult DeleteConfirmed(Guid id)
        {
            JudicialStatus judicialStatus = db.JudicialStatuses.Find(id);

            db.JudicialStatuses.Remove(judicialStatus);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "JudicialStatusID,JudicialStatus1,JudicialStatusName")] JudicialStatus judicialStatus)
 {
     if (ModelState.IsValid)
     {
         db.Entry(judicialStatus).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(judicialStatus));
 }
        public ActionResult Create([Bind(Include = "JudicialStatusID,JudicialStatus1,JudicialStatusName")] JudicialStatus judicialStatus)
        {
            if (ModelState.IsValid)
            {
                judicialStatus.JudicialStatusID = Guid.NewGuid();
                db.JudicialStatuses.Add(judicialStatus);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(judicialStatus));
        }
        // GET: Manager/JudicialStatus/Delete/5
        public ActionResult Delete(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            JudicialStatus judicialStatus = db.JudicialStatuses.Find(id);

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