Пример #1
0
        public async Task <IActionResult> Get(string id)
        {
            var response = await _genreManager.GetByIdAsync(id);

            if (response == null)
            {
                return(BadRequest("Couldn't Retrieve Genre"));
            }
            return(Ok(response));
        }