public ActionResult Create(CreateKanbanBoardViewModel model) { if(ModelState.IsValid) { var board = Mapper.Map<KanbanBoard>(model); var errors = _kanbanBoardService.CreateKanbanBoard(CurrentUser.Id, board); if(!errors.Any()) { return RedirectToRoute("Dashboard"); } AddServiceErrors(errors); } return View("New", model); }
public ActionResult New() { var model = new CreateKanbanBoardViewModel(); return View(model); }