public FubuContinuation Execute(CreateStoryInputModel inputModel)
        {
            //var response = new JsonResponse { Success = true };
            var story = new Story()
            {
                Name = inputModel.Name,
                Status = inputModel.Status,
                PointValue = inputModel.PointValue
            };

            _repository.Insert(story);

            return FubuContinuation.RedirectTo(new DashboardViewModel());
        }
Esempio n. 2
0
        public FubuContinuation Execute(CreateStoryInputModel inputModel)
        {
            //var response = new JsonResponse { Success = true };
            var story = new Story()
            {
                Name       = inputModel.Name,
                Status     = inputModel.Status,
                PointValue = inputModel.PointValue
            };

            _repository.Insert(story);

            return(FubuContinuation.RedirectTo(new DashboardViewModel()));
        }