예제 #1
0
        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));
        }
예제 #2
0
        public IActionResult Maintenance(int id = 0)
        {
            Posts post = _postBusiness.GetPost(id);

            return(View(post));
        }