Example #1
0
        private string GetPathOfFile(JsonFileDto dto, BusinessParam bp)
        {
            var methodName = $".{new StackTrace().GetFrame(1).GetMethod().Name}";

            try
            {
                return
                    ($"/service/file/download/{FileRepositoryFacade.ReplaceInValidCharacter(Encryption.Encrypt(GetJsonData(dto)))}.{dto.Extension}");
            }
            catch (Exception ex)
            {
                ExceptionUtil.ExceptionHandler(ex, ClassDetails[0].Facade + methodName, bp.UserInfo);
                return("");
            }
        }
Example #2
0
 private string GetJsonData(JsonFileDto dto)
 {
     return(JsonConvert.SerializeObject(dto));
 }