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.Suppliers DtoToEntity(this SupplierDetails dto)
        {
            IOBalanceDBV3Entity.Suppliers entity = null;

            if (!dto.IsNull())
            {
                entity = new IOBalanceDBV3Entity.Suppliers
                {
                    SupplierID   = dto.SupplierId,
                    CreatedBy    = dto.CreatedBy,
                    DateCreated  = dto.DateCreated,
                    SupplierCode = dto.SupplierCode,
                    DateUpdated  = dto.DateUpdated,
                    IsActive     = dto.IsActive,
                    SupplierName = dto.SupplierName,
                    UpdatedBy    = dto.UpdatedBy,
                };
            }

            return(entity);
        }