Пример #1
0
        //Returns true if the user can access the selected billing contact
        public static bool UserCanAccessBillingContact(int _UserID, int _BillingContactID)
        {
            UsersDataContext dc = new UsersDataContext();
            var result          = dc.S1_Users_Security_CanAccessBillingContact(_UserID, _BillingContactID);

            if (result != null && result.Count() > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }