public IList <RightsSellingRoyalty> GetRightsSellingRoyaltyList(RightsSellingRoyalty Royalty)
        {
            try
            {
                if (Royalty.RightsSellingID == null)
                {
                    Royalty.RightsSellingID = 0;
                }


                if (Royalty.ProductLicenseId != null)
                {
                    var _Royalty = _RightsSellingRoyalty.Table.Where(a => a.ProductLicenseId == Royalty.ProductLicenseId && a.Deactivate == "N" && a.RightsSellingID == Royalty.RightsSellingID).ToList();
                    return(_Royalty);
                }
                else
                {
                    var _Royalty = _RightsSellingRoyalty.Table.Where(a => a.ContractId == Royalty.ContractId && a.Deactivate == "N" && a.RightsSellingID == Royalty.RightsSellingID).ToList();
                    return(_Royalty);
                }
            }
            catch
            {
                return(null);
            }
        }
 public void InsertRightsSellingRoyalty(RightsSellingRoyalty RightsSellingRoyalty)
 {
     _RightsSellingRoyalty.Insert(RightsSellingRoyalty);
 }