/// <summary> /// This method will return an object representing the record matching the primary key information specified. /// </summary> /// /// <param name="pk" type="BDTaxTypePrimaryKey">Primary Key information based on which data is to be fetched.</param> /// /// <returns>object of class BDTaxType</returns> public BDTaxType SelectOne(BDTaxTypePrimaryKey pk) { _bDTaxTypeWCF = new BDTaxType(); _bDTaxType = POS.DataLayer.BDTaxTypeBase.SelectOne(new POS.DataLayer.BDTaxTypePrimaryKey(pk.TaxTypeID)); _bDTaxTypeWCF.TaxTypeID = _bDTaxType.TaxTypeID; _bDTaxTypeWCF.TaxTypeName = _bDTaxType.TaxTypeName; return(_bDTaxTypeWCF); }
///<summary> ///This method will Delete the object from the database ///</summary> ///<param name="pk" type="BDTaxTypePrimaryKey">Primary Key information based on which data is to be fetched.</param> /// <returns>True if succeeded</returns> public bool Delete(BDTaxTypePrimaryKey pk) { return(POS.DataLayer.BDTaxTypeBase.Delete(new POS.DataLayer.BDTaxTypePrimaryKey(pk.TaxTypeID))); }