Exemplo n.º 1
0
        public ActionResult Add(AddFeedItemModel model)
        {
            var update = new FeedItem()
            {
                Message = model.Content
            };

            _repository.Save(update);

            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        public ActionResult Add()
        {
            var model = new AddFeedItemModel();

            return(View(model));
        }