예제 #1
0
 public async Task <ActionResult <StockManagemntDto> > Edit(Guid id, Edit.Command command)
 {
     command.Id = id;
     return(await Mediator.Send(command));
 }
 public async Task <ActionResult <Unit> > Edit(Guid id, Edit.Command command)
 {
     command.Id = id;
     return(await mediator.Send(command)); // command here contains all the attributes
 }
 public async Task <ActionResult <Unit> > Edit([FromBody] Edit.Command command)
 {
     return(await Mediator.Send(command));
 }
 public async Task <ActionResult <Unit> > Update(Guid id, Edit.Command command)
 {
     command.Id = id;
     return(Ok(await _mediator.Send(command)));
 }
예제 #5
0
 public async Task <ActionResult <Unit> > Edit(Guid id, Edit.Command command)
 {
     command.Id = id;//Because I don't have a requirement for the id to be in the body.
     return(await _mediator.Send(command));
 }
예제 #6
0
 public async Task <ActionResult <Unit> > Edit(Guid Id, [FromBody] Edit.Command command)
 {
     command.Id = Id;
     return(await Mediator.Send(command));
 }
예제 #7
0
 public async Task <ActionResult <Unit> > Edit(Guid id, Edit.Command command, CancellationToken ct)
 {
     command.Id = id;
     return(await Mediator.Send(command, ct));
 }
예제 #8
0
 public async Task <ActivityDto> Edit(int id, Edit.Command command)
 {
     command.Id = id;
     return(await Mediator.Send(command));
 }
예제 #9
0
 public async Task <ActionResult <Unit> > Update(Edit.Command command)
 {
     return(await Mediator.Send(command));
 }
예제 #10
0
 public async Task <ActionResult <Unit> > Update(Guid id, Edit.Command cmd)
 {
     cmd.id = id;
     return(await _mediator.Send(cmd));
 }
예제 #11
0
 public Task <Unit> Edit(Guid id, Edit.Command command)
 {
     command.Id = id;
     return(_mediator.Send(command));
 }
예제 #12
0
 public async Task <ActionResult <Unit> > Edit(Guid id, Edit.Command command)
 {
     command.Id = id; //will be passed across inside command object thats being sent by mediator
     return(await _mediator.Send(command));
 }
예제 #13
0
 public async Task <ActionResult <Unit> > Edit(Guid id, Edit.Command command)
 {
     command.Id   = id;
     command.Date = command.Date.Value.AddHours(-4);
     return(await Mediator.Send(command));
 }
예제 #14
0
 public async Task <ActionResult <Unit> > Edit(int id, Edit.Command command)
 {
     command.ProjectId = id;
     return(await _mediator.Send(command));
 }
예제 #15
0
 public async Task <ActionResult <Unit> > Edit(Edit.Command command) =>
 await Mediator.Send(command);
 public async Task <ActionResult <Unit> > Edit(string name, Edit.Command command)
 {
     command.Name = name;
     return(await _mediator.Send(command));
 }
예제 #17
0
 public async Task <ActionResult <OrderTransactionsDto> > Edit(Guid id, Edit.Command command)
 {
     command.Id = id;
     return(await Mediator.Send(command));
 }
 public async Task <ActionResult <ResponseWrapper <Edit> > > Edit(string id, Edit.Command command)
 {
     command.Id = id;
     return(await Mediator.Send(command));
 }
예제 #19
0
 public async Task <ActionResult <Unit> > Edit(Guid id, [FromForm] Edit.Command command1)
 {
     command1.Id = id;
     return(await Mediator.Send(command1));
 }
예제 #20
0
 public async Task <ActionResult <Unit> > Edit(Guid id, Edit.Command command) // command is the request json we send in body
 {
     command.Id = id;
     return(await _mediator.Send(command));
 }
예제 #21
0
 public async Task <ActionResult <Unit> > EditCurrentProfile(Edit.Command command)
 {
     return(await Mediator.Send(command));
 }
        public async Task <ActionResult <Unit> > Edit([FromBody] Edit.Command command)
        {
            var response = await Mediator.Send(command);

            return(response);
        }
예제 #23
0
 public async Task <IActionResult> Edit(Edit.Command command)
 {
     return(HandleResult(await Mediator.Send(command)));
 }
예제 #24
0
 public async Task <ActionResult <Unit> > EditAsync(Guid id, Edit.Command command)
 {
     return(await _mediator.Send(command));
 }
 public async Task <ActionResult <Unit> > Edit(Guid id, Edit.Command command)
 {
     //id from the request will be send to the DB through the mediator with the command
     command.Id = id;
     return(await Mediator.Send(command));
 }
예제 #26
0
 public async Task <ActionResult <Unit> > Edit(Edit.Command cmd)
 {
     return(await Mediator.Send(cmd));
 }
예제 #27
0
 public async Task <ActionResult <CalendarEvent> > Edit(Edit.Command command)
 {
     return(await Mediator.Send(command));
 }
예제 #28
0
 public async Task <ActionResult <FSObject> > Edit(Edit.Command command)
 {
     return(await Mediator.Send(command));
 }
예제 #29
0
 public async Task <ActionResult <Unit> > Edit(Guid id, Edit.Command command)
 {
     command.Id = id;
     return(await Mediator.Send(command));
 }
예제 #30
0
        public async Task <ActionResult <Unit> > Edit(string username, Edit.Command command)

        {
            command.username = username;
            return(await Mediator.Send(command));
        }