Example #1
0
        public ProfilesProfileResponse Post(SetProfileRequest request)
        {
            Profile profile = (from p in Program.Runtime.Setup.Profiles
                               where p.Id == request.ProfileId
                               select p).FirstOrDefault();

            Program.Runtime.CurrentProfile = profile;
            Program.Runtime.Save();
            return(new ProfilesProfileResponse()
            {
                Id = profile.Id, Name = profile.Name, Description = profile.Description
            });
        }
Example #2
0
        public ProfilesProfileResponse Post(SetProfileRequest request)
        {

            Profile profile = (from p in Program.Runtime.Setup.Profiles
                                       where p.Id == request.ProfileId
                                       select p).FirstOrDefault();

            Program.Runtime.CurrentProfile = profile;
            Program.Runtime.Save();
            return new ProfilesProfileResponse() { Id = profile.Id, Name = profile.Name, Description = profile.Description };
        }