Example #1
0
        private static object InitItem(string key)
        {
            switch (key.Trim().ToLower())
            {
            case "controls":
                return(Control.Get());

            case "controls_dict":
                return(Control.Get_Dict());

            case "departments":
                return(Department.Get());

            case "departments_dict":
                return(Department.Get_Dict());

            case "payment_types":
                return(PaymentType.Get());

            case "payment_types_dict":
                return(PaymentType.Get_Dict());

            case "useraccess":
                return(UserAccess.GetAllUserAccess());

            case "list_of_names":
                return(UserAccess.GetAllUserDisplayNames());

            default:
                return(null);
            }
        }