public IActionResult InsertBothCustomer([FromServices] CustomerServiceA customerServiceA, [FromServices] CustomerServiceB customerServiceB, [FromBody] string name) { customerServiceA.AddCustomer(name); customerServiceB.AddCustomer(name); return(Ok()); }
public IActionResult InsertVipCustomer([FromServices] CustomerServiceA customerService, [FromBody] string name) { customerService.AddCustomer(name); return(Ok()); }