public async Task Create(ThinkViewModel model) { var newPost = new Think() { Description = model.Description, Title = model.Title, CreatedOn = model.CreatedOn }; await _forumPostAnswer.InsertAsync(newPost); }
public async Task Delete(ThinkViewModel model) { var deletePost = new Think() { Description = model.Description, Title = model.Title, CreatedOn = model.CreatedOn }; await _forumPostAnswer.DeleteAsync(deletePost); }
public async Task <ActionResult> Delete(ThinkViewModel model) { await _manageForMeService.Delete(model); return(View()); }