public IActionResult DeletePhoto(int Id) { var uploadFolderPath = Path.Combine(host.WebRootPath, "uploads"); photosRepository.DeletePhoto(Id, uploadFolderPath); return(Ok("OK")); }