Beispiel #1
0
        /// <summary>
        /// Gets a list of Type of Users for Viewbags (e.g.)
        /// </summary>
        /// <param name="id">Id of selected item</param>
        /// <returns>Select list</returns>
        public static SelectList GetSelectList_Users(int id = -1)
        {
            SelectionListGenerator slg = new SelectionListGenerator();

            return(slg.GetList(new UserManipulation(), "UserId", "FullName", id));
        }
Beispiel #2
0
        /// <summary>
        /// Gets a list of Type of Requests for Viewbags (e.g.)
        /// </summary>
        /// <param name="id">Id of selected item</param>
        /// <returns>Select list</returns>
        public static SelectList GetSelectList_TypeOfRequests(int id = -1)
        {
            SelectionListGenerator slg = new SelectionListGenerator();

            return(slg.GetList(new TypeOfRequestManipulation(), "TypeOfRequestId", "Description", id));
        }