Ejemplo n.º 1
0
        //Returns true if the user can access the selected invoice
        public static bool UserCanAccessInvoice(int _UserID, int _InvoiceID)
        {
            UsersDataContext dc = new UsersDataContext();
            var result          = dc.S1_Users_Security_CanAccessInvoice(_UserID, _InvoiceID);

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