Exemple #1
0
        public async Task <IActionResult> Edit(AlbumModel album)
        {
            if (await _albumRepository.EditAlbumAsync(album))
            {
                _logger.LogInformation($"Album {album} was successfully edited.");
                return(Ok());
            }

            _logger.LogWarning($"Editing album was failed. Album with name={album.Name} already exists for user with userId={album.UserId}.");
            return(Conflict());
        }