public Task DeleteAsync([Required][FromRoute] string customerId) { if (string.IsNullOrWhiteSpace(customerId)) { throw new BadRequestException($"{nameof(customerId)} can't be empty"); } return(_customerProfileService.RemoveAsync(customerId)); }
public Task DeleteAsync([Required][FromRoute] string customerId) { if (string.IsNullOrWhiteSpace(customerId)) { throw new BadRequestException($"{nameof(customerId)} can't be empty"); } return(_customerProfileService.RemoveAsync(customerId)); }