public async Task <IActionResult> PutOutgoing(int id, Owner.Type ownerType, [FromBody] MaterialOutgoingDetailDto detail) { var result = await _mediator.Send(new Update.Command(id, User.Identity.GetUserId(), detail, ownerType)); return(Ok(result)); }
public Command(MaterialOutgoingDetailDto materialDetailDto, int userId, Owner.Type ownerType) { MaterialDetailDto = materialDetailDto; UserId = userId; OwnerType = ownerType; }