Esempio n. 1
0
        public async Task <ObjectResult> Delete(string Nickname, string Name)
        {
            _logger.LogInformation($"Delete book {Name} from reader {Nickname}");
            var response = await readerService.DeleteBookFromReader(Nickname, Name);

            if (response == null)
            {
                _logger.LogInformation("Internal gateway error");
                return(StatusCode(500, "Internal error"));
            }

            return(StatusCode(response.Code, response.Message));
        }