View Code? Open in Web Editor
NEW
CQRS implementation in ASP.NET Core using MediatR in .NET 5
mediatrtutorial's Introduction
mediatrtutorial's People
Contributors
mediatrtutorial's Issues
با سلام واحترام
سوالی داشتم در مورد متد 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);
است؟ مرسی