public async Task <ActionResult <BlogResponseModel> > Delete(BlogRequestModel input) { await this.blogsService.DeleteAsync(input.BlogId); return(new BlogResponseModel { }); }
public async Task <IActionResult> Edit(BlogRequestModel input) { await this.blogsService.EditAsync(input.BlogId, new BlogInputViewModel { Title = input.BlogTitle, Content = input.Content, AuthorId = input.AuthorId, }); return(this.RedirectToAction("CrudOperations")); }