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