Exemplo n.º 1
0
 public async Task <ActionResult <PhotoUploadResult> > UploadPhoto([FromForm] AddPhoto.Command command)
 {
     return(await Mediator.Send(command));
 }
Exemplo n.º 2
0
 public async Task <IActionResult> Add([FromForm] AddPhoto.Command command)
 {
     return(HandleResult(await Mediator.Send(command)));
 }
 public async Task <ActionResult <Photo> > AddPhoto([FromForm] AddPhoto.Command command) => await Mediator.Send(command);
Exemplo n.º 4
0
 public async Task <ActionResult <Photo> > AddPhotoAsync([FromForm] AddPhoto.Command command)
 {
     return(await Mediator.Send(command));
 }
Exemplo n.º 5
0
 public async Task <ActionResult <UserPhotoItem> > Add([FromBody] AddPhoto.Command command)
 {
     return(await Mediator.Send(command));
 }