public ActionResult DeleteConfirmed(string id)
        {
            tb_Current_Agency tb_Current_Agency = db.tb_Current_Agency.Find(id);

            db.tb_Current_Agency.Remove(tb_Current_Agency);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "AgencyID,AgencyArabicName,AgencyEnglishName,AgencyEnglishNameAbbreviation,AgencyCategoryID")] tb_Current_Agency tb_Current_Agency)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tb_Current_Agency).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.AgencyID = new SelectList(db.tb_Current_Consumer, "ConsumerID", "ConsumerArabicName", tb_Current_Agency.AgencyID);
     ViewBag.AgencyID = new SelectList(db.tb_Current_Provider, "ProviderID", "ProviderArabicName", tb_Current_Agency.AgencyID);
     return(View(tb_Current_Agency));
 }
        // GET: tb_Current_Agency/Details/5
        public ActionResult Details(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tb_Current_Agency tb_Current_Agency = db.tb_Current_Agency.Find(id);

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

            if (tb_Current_Agency == null)
            {
                return(HttpNotFound());
            }
            ViewBag.AgencyID = new SelectList(db.tb_Current_Consumer, "ConsumerID", "ConsumerArabicName", tb_Current_Agency.AgencyID);
            ViewBag.AgencyID = new SelectList(db.tb_Current_Provider, "ProviderID", "ProviderArabicName", tb_Current_Agency.AgencyID);
            return(View(tb_Current_Agency));
        }