Пример #1
0
        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);
        }
Пример #2
0
 public ActionResult New()
 {
     var model = new CreateKanbanBoardViewModel();
     return View(model);
 }