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

            if (!dto.IsNull())
            {
                entity = new IOBalanceDBV3Entity.Customers
                {
                    CustomerID      = dto.CustomerId,
                    CreatedBy       = dto.CreatedBy,
                    CustomerAddress = dto.CustomerAddress,
                    CustomerCode    = dto.CustomerCode,
                    CustomerName    = dto.CustomerName,
                    DateCreated     = dto.DateCreated,
                    DateUpdated     = dto.DateUpdated,
                    IsActive        = dto.IsActive,
                    UpdatedBy       = dto.UpdatedBy
                };
            }

            return(entity);
        }