Exemple #1
0
        public ServiceResult <string> UploadFundation(UploadImageInModel model)
        {
            int countryId = WorkContext.CountryId;

            string imgId = new WebImageComponent().UploadFundation(model.FileName, model.Base64Content);

            return(Result_OK(imgId));
        }
Exemple #2
0
        public ServiceResult <string> DownloadFundation(string id)
        {
            int countryId = WorkContext.CountryId;

            string imgId = new WebImageComponent().DownloadFundation(id);

            return(Result_OK(imgId));
        }
Exemple #3
0
        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);
        }