public async Task <IActionResult> GetPost(int id) { var post = await _postBusiness.GetPost(id); var postDto = _mapper.Map <PostDto>(post); var response = new ApiResponse <PostDto>(postDto); return(Ok(response)); }
public IActionResult Maintenance(int id = 0) { Posts post = _postBusiness.GetPost(id); return(View(post)); }