public ActionResult DeleteConfirmed(int id) { themes themes = db.themes.Find(id); db.themes.Remove(themes); db.SaveChanges(); return(RedirectToAction("Index")); }
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)); }
public ActionResult Create([Bind(Include = "id,name")] themes themes) { if (ModelState.IsValid) { db.themes.Add(themes); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(themes)); }
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)); }
/// <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; }
// GET: themes/Details/5 public ActionResult Details(int?id) { themes themes = db.themes.Find(id); return(View(themes)); }
//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; }