با سلام واحترام
سوالی داشتم در مورد متد CreateCustomer در کنترلر
[HttpPost] public async Task<IActionResult> CreateCustomer([FromBody] CreateCustomerCommand createCustomerCommand) { CustomerDto customer = await _mediator.Send(createCustomerCommand); return CreatedAtAction(nameof(GetCustomerById), new { customerId = customer.Id }, customer); }
چرا خروجی این متد برابر
return CreatedAtAction(nameof(GetCustomerById), new { customerId = customer.Id }, customer);
است؟ مرسی
با سلام واحترام
سوالی داشتم در مورد متد CreateCustomer در کنترلر
[HttpPost] public async Task<IActionResult> CreateCustomer([FromBody] CreateCustomerCommand createCustomerCommand) { CustomerDto customer = await _mediator.Send(createCustomerCommand); return CreatedAtAction(nameof(GetCustomerById), new { customerId = customer.Id }, customer); }چرا خروجی این متد برابر
return CreatedAtAction(nameof(GetCustomerById), new { customerId = customer.Id }, customer);است؟ مرسی