Beispiel #1
0
        public async Task <IActionResult> Get(Guid id)
        {
            try
            {
                var post = await _postServices.GetPostAsync(id);

                return(Ok(post));
            }
            catch (Exception e)
            {
                _logger.LogError(e, e.Message);
                return(BadRequest());
            }
        }