public IActionResult Delete(Guid serverImageId) { var image = _ServerImageRepository.Retrieve(serverImageId); if (image != null && !string.IsNullOrWhiteSpace(image.VirtualFilePath)) { ImageUploader.Delete(_HostingEnvironment, image.VirtualFilePath); _ServerImageRepository.Delete(serverImageId); } return(Ok(ServiceResponse.Ok())); }