Skip to content

CreateCustomer #1

Description

@alirezaseif28

با سلام واحترام
سوالی داشتم در مورد متد 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);
است؟ مرسی

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions