public async Task Update(string space, SpaceUpdate update, User user) { Space?s = await repo.FindByName(space); if (s == null) { throw new NotFoundException($"No space with name {space} found."); } ; s.Update(update); await repo.Update(s); await bus.Dispatch(new SpaceUpdateEvent(s)); }
public void Update(SpaceUpdate update) { Description = update.Description; }