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