public async Task <IActionResult> Create(KontrahentCreateModel model) { var id = await Mediator.Send(new KontrahentCreateCommand(PrzedsiebiorstwoId, model)); return(Ok(id)); }
public Task <Guid> DodajKontrahenta(KontrahentCreateModel model) { return(HttpClient.Post <Guid>("Kontrahent", model)); }
public KontrahentCreateCommand(Guid przedsiebiorstwoId, KontrahentCreateModel model) { PrzedsiebiorstwoId = przedsiebiorstwoId; Model = model; }