Example #1
0
        public MenuSetupResponse Get()
        {
            MenuSetupResponse response = new MenuSetupResponse();

            response.Profiles = GetProfiles().Profiles;

            if (Program.Runtime.CurrentProfile != null)
            {
                response.CurrentProfile = (from p in response.Profiles
                                           where p.Id == Program.Runtime.CurrentProfile.Id
                                           select p).FirstOrDefault();
            }
            return(response);
        }
Example #2
0
        public MenuSetupResponse Get()
        {
            MenuSetupResponse response = new MenuSetupResponse();
            response.Profiles = GetProfiles().Profiles;

            if (Program.Runtime.CurrentProfile != null)
            {
                response.CurrentProfile = (from p in response.Profiles
                                           where p.Id == Program.Runtime.CurrentProfile.Id
                                           select p).FirstOrDefault();
            }
            return response;
        }