public ActionResult DeleteConfirmed(int id)
        {
            SponsorsInfo sponsorsInfo = db.SponsorsInfo.Find(id);

            db.SponsorsInfo.Remove(sponsorsInfo);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "id,name,logourl,money,url")] SponsorsInfo sponsorsInfo)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sponsorsInfo).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sponsorsInfo));
 }
        public ActionResult Create([Bind(Include = "id,name,logourl,money,url")] SponsorsInfo sponsorsInfo)
        {
            if (ModelState.IsValid)
            {
                db.SponsorsInfo.Add(sponsorsInfo);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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