Пример #1
0
        private void SetScheduleItemUsers(ScheduleItem scheduleItem)
        {
            var user = context.User.Cast <UserAuthenticated>();

            if (user == null)
            {
                return;
            }
            var users = repository.GetScheduleItemUsers(scheduleItem.ID, user.ID);

            scheduleItem.Users = users.ToList();
        }