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