Пример #1
0
 public async Task <ActionResult <Photo> > Add([FromForm] PhotoAdd.Command command)
 {
     return(await Mediator.Send(command));
 }
Пример #2
0
 public async Task <IActionResult> AddPhoto([FromForm] PhotoAdd.Command command)
 {
     return(HandleResult(await Mediator.Send(command)));
 }