public ServiceResult <string> UploadFundation(UploadImageInModel model) { int countryId = WorkContext.CountryId; string imgId = new WebImageComponent().UploadFundation(model.FileName, model.Base64Content); return(Result_OK(imgId)); }
public ServiceResult <string> DownloadFundation(string id) { int countryId = WorkContext.CountryId; string imgId = new WebImageComponent().DownloadFundation(id); return(Result_OK(imgId)); }
public ServiceResult <string> Download(string id) { ServiceResult <string> result = new ServiceResult <string>(); int countryId = WorkContext.CountryId; var bytes = new WebImageComponent().Download(id, countryId); result.Data = bytes; return(result); }