public ActionResult Index(MashDisplayViewModel model) { model = model ?? new MashDisplayViewModel(); var mashes = _dataProvider.GetMashes(model.Tags == null ? null : model.Tags.Select(t => t.Slug), model.Count); return View("Mashes", mashes); }
public ActionResult Mashes(MashDisplayViewModel model) { return Index(model); }