public async Task <Command> GetCommandByCommandIdAsync(CommandId id) { IEnumerable <Command> commands = await GetAllCommandsAsync(); return(commands.Where((c) => { return ((c.Id.Id == id.Id) && (c.Id.Guid == id.Guid)); }).FirstOrDefault()); }