private async Task Validate(Models.ShortenUrl model) { var shortcutValid = await _validator.IsShortcutValidAsync(model.Shortcut); if (!shortcutValid) { throw new ArgumentException("Shortcut is already used"); } var urlValid = await _validator.IsUrlValidAsync(model.Url); if (!urlValid) { throw new ArgumentException("Url is not valid"); } }