예제 #1
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());
        }
예제 #2
0
 public DashboardViewModel()
 {
     Stories = new List<Story>();
     StoryModel = new Story();
 }
 public void Insert(Story story)
 {
     _storyList.Add(story);
 }