Пример #1
0
        /// <summary>
        /// This method will return an object representing the record matching the primary key information specified.
        /// </summary>
        ///
        /// <param name="pk" type="BDRefuseReasonPrimaryKey">Primary Key information based on which data is to be fetched.</param>
        ///
        /// <returns>object of class BDRefuseReason</returns>
        public BDRefuseReason SelectOne(BDRefuseReasonPrimaryKey pk)
        {
            _bDRefuseReasonWCF = new BDRefuseReason();
            _bDRefuseReason    = POS.DataLayer.BDRefuseReasonBase.SelectOne(new POS.DataLayer.BDRefuseReasonPrimaryKey(pk.RefuseReasonID));

            _bDRefuseReasonWCF.RefuseReasonID   = _bDRefuseReason.RefuseReasonID;
            _bDRefuseReasonWCF.RefuseReasonName = _bDRefuseReason.RefuseReasonName;

            return(_bDRefuseReasonWCF);
        }
Пример #2
0
 ///<summary>
 ///This method will Delete the object from the database
 ///</summary>
 ///<param name="pk" type="BDRefuseReasonPrimaryKey">Primary Key information based on which data is to be fetched.</param>
 /// <returns>True if succeeded</returns>
 public bool Delete(BDRefuseReasonPrimaryKey pk)
 {
     return(POS.DataLayer.BDRefuseReasonBase.Delete(new POS.DataLayer.BDRefuseReasonPrimaryKey(pk.RefuseReasonID)));
 }