/// <summary> /// This method will return an object representing the record matching the primary key information specified. /// </summary> /// /// <param name="pk" type="AGGroupRolePrimaryKey">Primary Key information based on which data is to be fetched.</param> /// /// <returns>object of class AGGroupRole</returns> public AGGroupRole SelectOne(AGGroupRolePrimaryKey pk) { _aGGroupRoleWCF = new AGGroupRole(); _aGGroupRole = POS.DataLayer.AGGroupRoleBase.SelectOne(new POS.DataLayer.AGGroupRolePrimaryKey(pk.GroupRoleID)); _aGGroupRoleWCF.GroupRoleID = _aGGroupRole.GroupRoleID; _aGGroupRoleWCF.GroupID = _aGGroupRole.GroupID; _aGGroupRoleWCF.RoleID = _aGGroupRole.RoleID; return(_aGGroupRoleWCF); }
///<summary> ///This method will Delete the object from the database ///</summary> ///<param name="pk" type="AGGroupRolePrimaryKey">Primary Key information based on which data is to be fetched.</param> /// <returns>True if succeeded</returns> public bool Delete(AGGroupRolePrimaryKey pk) { return(POS.DataLayer.AGGroupRoleBase.Delete(new POS.DataLayer.AGGroupRolePrimaryKey(pk.GroupRoleID))); }