public async Task <IActionResult> Patch(PhotoModel photo) { await _photoRepository.EditPhotoAsync(photo); _logger.LogInformation($"Photo {photo} were successfully added."); return(Ok()); }