public ActionResult AddSingle() { AddSingleViewModel model = new AddSingleViewModel(); model.BandName = Session["band"].ToString(); return View(model); }
public ActionResult AddSingle(AddSingleViewModel model) { if (ModelState.IsValid && !String.IsNullOrEmpty(model.SongName)) { bandService.AddSingle(model); } return View(model); }