public CommonServices(IPLRepository <Units> units,
                              IPLRepository <Customers> customers,
                              IPLRepository <FilePasswords> filePasswords,
                              IPLRepository <Suppliers> suppliers)
        {
            this._units         = units;
            this._customers     = customers;
            this._filePasswords = filePasswords;
            this._suppliers     = suppliers;

            this.units         = new IOBalanceDBV3Entity.Units();
            this.customers     = new IOBalanceDBV3Entity.Customers();
            this.filePasswords = new IOBalanceDBV3Entity.FilePasswords();
            this.suppliers     = new IOBalanceDBV3Entity.Suppliers();
        }
예제 #2
0
        public static IOBalanceDBV3Entity.FilePasswords DtoToEntity(this FilePasswordDetails dto)
        {
            IOBalanceDBV3Entity.FilePasswords entity = null;

            if (!dto.IsNull())
            {
                entity = new IOBalanceDBV3Entity.FilePasswords
                {
                    CreatedBy      = dto.CreatedBy,
                    DateCreated    = dto.DateCreated,
                    FilePassword   = dto.FilePassword,
                    FilePasswordID = dto.FilePasswordId,
                };
            }

            return(entity);
        }