示例#1
0
        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));
        }
示例#2
0
 public void Update(SpaceUpdate update)
 {
     Description = update.Description;
 }