Example #1
0
        public void File()
        {
            L_FileUpload data = new L_FileUpload()
            {
                fileName   = "TEST",
                ipAddress  = "123",
                macAddress = "ABC",
                type       = "PRD",
                userId     = 1
            };

            FileBO bo = new FileBO();

            //var res = bo.addFile(data);
        }
Example #2
0
            public static FileUpload fileUpload(L_FileUpload item)
            {
                if (item == null)
                {
                    return(null);
                }

                return(new FileUpload()
                {
                    id = item.id,
                    fileName = item.fileName,
                    ipAddress = item.ipAddress,
                    macAddress = item.macAddress,
                    type = item.type,
                    uploadDate = item.uploadDate,
                    userId = item.userId
                });
            }