示例#1
0
        public async Task SaveSectionState(AdminSectionState state)
        {
            var userId = Resolve <ICurrentUserContext>().Id;
            var user   = await Query <AdminUser>().FirstOrDefaultAsync(u => u.Id == userId);

            user.AdminSectionStateJson = JsonConvert.SerializeObject(state);
            Db.Update(user);
            await Db.SaveChangesAsync();
        }
示例#2
0
 public Task Post(AdminSectionState s) => Resolve <AdminService>().SaveSectionState(s);