public async Task <ActionResult <ResponseWrapper <Create> > > Create(Create.Command command)
 {
     return(await Mediator.Send(command));
 }
 public async Task <ActionResult <Unit> > Create(Create.Command command)
 {
     return(await _mediator.Send(command));
 }
Esempio n. 3
0
 public async Task <ActionResult <Unit> > Create([FromBody] Create.Command command)
 {
     return(await Mediator.Send(command));
 }
 public async Task <IActionResult> Create(Create.Command command)
 {
     return(Ok(await Mediator.Send(command)));
 }
Esempio n. 5
0
 public async Task <ActionResult <Unit> > Create(Create.Command command)  // This is implemented by [ApiController] of Create([fromBody]Create.Command command), this takes values from body and initializes the command properties inside Create.cs
 {
     return(await Mediator.Send(command));
 }
Esempio n. 6
0
 public async Task <ActionResult <Unit> > Create(Create.Command dataCommand)
 {
     return(await Mediator.Send(dataCommand));
 }
 public async Task <ActivityDto> Create(Create.Command command)
 {
     return(await Mediator.Send(command));
 }
Esempio n. 8
0
 public async Task <ActionResult <MessageDto> > Create(Create.Command command)
 {
     return(await Mediator.Send(command));
 }
 public Task <Unit> Create(Create.Command command)
 {
     return(_mediator.Send(command));
 }
Esempio n. 10
0
 public async Task <ActionResult <StockManagemntDto> > Create(Create.Command command)
 {
     return(await Mediator.Send(command));
 }
 public async Task <ActionResult <Unit> > Create(Create.Command command)
 {
     //if(ModelState.IsValid)
     return(await Mediator.Send(command));
 }