public async Task <IActionResult> CrearRemision([FromBody] Remision remision) { try { return(Ok(await _service.CrearRemision(remision, new UsuarioDTO()))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public async Task <Guid> Execute(IParams param) { try { Parametros parametros = (Parametros)param; return(await _service.CrearRemision(parametros.remision, parametros.usuario)); } catch (Exception) { throw; } }