public Task DeleteBotCommand(string id) { if (string.IsNullOrWhiteSpace(id)) { throw new ArgumentNullException(nameof(id)); } return(BotCommandClient.DeleteAsync(id)); }
public Task <BotCommandResult> PostBotCommand(BotCommand command) { if (command == null) { throw new ArgumentNullException(nameof(command)); } return(BotCommandClient.CreateAsync(command)); }
public Task <BotCommandResult> GetBotCommandAsync(string id) { if (string.IsNullOrWhiteSpace(id)) { throw new ArgumentNullException(nameof(id)); } return(BotCommandClient.GetOneAsync(id)); }
public Task <BotCommandResult> PutBotCommand(string id, BotCommand command) { if (string.IsNullOrWhiteSpace(id)) { throw new ArgumentNullException(nameof(id)); } if (command == null) { throw new ArgumentNullException(nameof(command)); } return(BotCommandClient.UpdateAsync(id, command)); }
public Task <List <BotCommandResult> > GetBotCommandsAsync() => BotCommandClient.GetAllAsync();