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(); }
public Task Post(AdminSectionState s) => Resolve <AdminService>().SaveSectionState(s);