Example #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            BLinkCompany blinkcompany = db.BLinkCompanies.Find(id);

            db.BLinkCompanies.Remove(blinkcompany);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
        //
        // GET: /BLinkCompany/Delete/5

        public ActionResult Delete(int id = 0)
        {
            BLinkCompany blinkcompany = db.BLinkCompanies.Find(id);

            if (blinkcompany == null)
            {
                return(HttpNotFound());
            }
            return(View(blinkcompany));
        }
Example #3
0
 public ActionResult Edit(BLinkCompany blinkcompany)
 {
     if (ModelState.IsValid)
     {
         db.Entry(blinkcompany).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(blinkcompany));
 }
        public ActionResult Create(BLinkCompany blinkcompany)
        {
            if (ModelState.IsValid)
            {
                db.BLinkCompanies.Add(blinkcompany);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(blinkcompany);
        }
Example #5
0
        public ActionResult Create(BLinkCompany blinkcompany)
        {
            if (ModelState.IsValid)
            {
                db.BLinkCompanies.Add(blinkcompany);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(blinkcompany));
        }
 public ActionResult Edit(BLinkCompany blinkcompany)
 {
     if (ModelState.IsValid)
     {
         db.Entry(blinkcompany).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(blinkcompany);
 }