Esempio n. 1
0
 public async Task <ActionResult <Photo> > Add([FromForm] PhotoAdd.Command command)
 {
     return(await Mediator.Send(command));
 }
Esempio n. 2
0
 public async Task <IActionResult> AddPhoto([FromForm] PhotoAdd.Command command)
 {
     return(HandleResult(await Mediator.Send(command)));
 }