Beispiel #1
0
        public async Task <IActionResult> GetAccountDetail(int id)
        {
            var user = await _repo.AccountAccountForBlog(id);

            if (user == null)
            {
                return(NotFound());
            }
            var returnUser = _mapper.Map <AccountBlogDTO>(user);

            return(Ok(returnUser));
        }