public Task <long> CreateArquivo(CreateRelatoArquivoCommand command) { var requestUrl = CreateRequestUri(string.Format(System.Globalization.CultureInfo.InvariantCulture, $"{ResourceRelatoArquivo}/CreateRelatoArquivo")); return(Post(requestUrl, command)); }
public async Task <ActionResult <long> > CreateRelatoArquivo(CreateRelatoArquivoCommand command) { try { var result = await Mediator.Send(command); return(result); } catch (Exception e) { Console.WriteLine(e); throw; } }