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