Exemplo n.º 1
0
        public async Task <IActionResult> Update(string id, [FromBody] UpdateGenreRequest updateRequest)
        {
            var response = await _genreManager.UpdateAsync(id, updateRequest);

            if (!response.IsSuccess)
            {
                return(BadRequest("Exception Occured While Updating Genre"));
            }

            return(Ok(response));
        }