public TaxCalc CalculatePropertyTax(CalculatePropertyTax command) { Console.WriteLine(command.State); return(command.State == "CT" ? new TaxCalc { Amount = 20_500, DateCalculated = DateTime.Now }
public async Task <TaxCalc> CalculatePropertyTax([FromBody] CalculatePropertyTax command) { return(await _messaging.SendAsync(command)); }