public ActionResult DeleteConfirmed(int id)
        {
            Subscribe_Company subscribe_Company = db.Subscribe_Companies.Find(id);

            db.Subscribe_Companies.Remove(subscribe_Company);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,SubScribeId,CompanyId")] Subscribe_Company subscribe_Company)
 {
     if (ModelState.IsValid)
     {
         db.Entry(subscribe_Company).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(subscribe_Company));
 }
        public ActionResult Create([Bind(Include = "Id,SubScribeId,CompanyId")] Subscribe_Company subscribe_Company)
        {
            if (ModelState.IsValid)
            {
                db.Subscribe_Companies.Add(subscribe_Company);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(subscribe_Company));
        }
        // GET: Subscribe_Company/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Subscribe_Company subscribe_Company = db.Subscribe_Companies.Find(id);

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