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();
        }
        public static IOBalanceDBV3Entity.Units DtoToEntity(this UnitDetails dto)
        {
            IOBalanceDBV3Entity.Units entity = null;

            if (!dto.IsNull())
            {
                entity = new IOBalanceDBV3Entity.Units
                {
                    UnitID          = dto.UnitId,
                    UnitDescription = dto.UnitDescription
                };
            }

            return(entity);
        }