Esempio n. 1
0
        /// <summary>
        /// the resultant users will be reporting to selected or login user
        /// </summary>
        /// <param name="UserID"></param>
        /// <returns></returns>
        public IList <SelectedUsers> GetReportingToByUserID(Guid UserID)
        {
            IList <SelectedUsers> Reporting = new List <SelectedUsers>();

            try
            {
                Reporting = _context.usp_UsersReporting_GetByRepotingToUserID(UserID)
                            .Select(x => new SelectedUsers
                {
                    id    = x.UserID.ToString(),
                    value = x.UserDisplayName
                }).ToList();
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(Reporting);
        }