public ActionResult AddSubmit(BeekViewModel newBeek) { beekRepository.AddBeek(MapBeek(newBeek)); ViewData.Model = newBeek; return this.RedirectToAction(c => c.Add(newBeek)); }
private static BaseBeek MapBeek(BeekViewModel newBeek) { return new BaseBeek(BeekTypes.LongStory) {Title = newBeek.Title}; }
public ActionResult Add(BeekViewModel newBeek) { return View(newBeek); }