Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            themes themes = db.themes.Find(id);

            db.themes.Remove(themes);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public ActionResult Edit([Bind(Include = "id,name")] themes themes)
 {
     if (ModelState.IsValid)
     {
         db.Entry(themes).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(themes));
 }
Esempio n. 3
0
        public ActionResult Create([Bind(Include = "id,name")] themes themes)
        {
            if (ModelState.IsValid)
            {
                db.themes.Add(themes);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(themes));
        }
Esempio n. 4
0
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            themes themes = db.themes.Find(id);

            if (themes == null)
            {
                return(HttpNotFound());
            }
            return(View(themes));
        }
Esempio n. 5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FormInput"/> class.
        /// </summary>
        /// <param name="_themes">The themes.</param>
        /// <param name="customTheme">if set to <c>true</c> [custom theme].</param>
        /// <param name="activateShadow">if set to <c>true</c> [activate shadow].</param>
        /// <param name="shadowBlur">The shadow blur.</param>
        /// <param name="shadowSpread">The shadow spread.</param>
        /// <param name="shadowVertical">The shadow vertical.</param>
        /// <param name="shadowHorizontal">The shadow horizontal.</param>
        /// <param name="shadowColor">Color of the shadow.</param>
        public FormInput(
            themes _themes,
            bool customTheme,
            bool activateShadow,
            int shadowBlur,
            int shadowSpread,
            int shadowVertical,
            int shadowHorizontal,
            Color shadowColor

            ) : this(themes.Resizable)
        {
            this._themes          = _themes;
            this.customTheme      = customTheme;
            this.activateShadow   = activateShadow;
            this.shadowBlur       = shadowBlur;
            this.shadowSpread     = shadowSpread;
            this.shadowVertical   = shadowVertical;
            this.shadowHorizontal = shadowHorizontal;
            this.shadowColor      = shadowColor;
        }
Esempio n. 6
0
        // GET: themes/Details/5
        public ActionResult Details(int?id)
        {
            themes themes = db.themes.Find(id);

            return(View(themes));
        }
Esempio n. 7
0
 //Internal Constructor
 /// <summary>
 /// Initializes a new instance of the <see cref="FormInput"/> class.
 /// </summary>
 /// <param name="theme">The theme.</param>
 public FormInput(themes theme)
 {
     this._themes = theme;
 }