Esempio n. 1
0
        public async Task Create(ThinkViewModel model)
        {
            var newPost = new Think()
            {
                Description = model.Description,
                Title       = model.Title,
                CreatedOn   = model.CreatedOn
            };

            await _forumPostAnswer.InsertAsync(newPost);
        }
Esempio n. 2
0
        public async Task Delete(ThinkViewModel model)
        {
            var deletePost = new Think()
            {
                Description = model.Description,
                Title       = model.Title,
                CreatedOn   = model.CreatedOn
            };

            await _forumPostAnswer.DeleteAsync(deletePost);
        }
Esempio n. 3
0
        public async Task <ActionResult> Delete(ThinkViewModel model)
        {
            await _manageForMeService.Delete(model);

            return(View());
        }