Пример #1
0
        public ActionResult Add(AddFeedItemModel model)
        {
            var update = new FeedItem()
            {
                Message = model.Content
            };

            _repository.Save(update);

            return(RedirectToAction("Index"));
        }
Пример #2
0
        public ActionResult Add()
        {
            var model = new AddFeedItemModel();

            return(View(model));
        }