public async Task RunAutoUpdateById(string id) { try { var req = GrpcStringFactory.From(id); await ShippingClient.RunAutoUpdateById(req); } catch (Exception) { throw; } }
public async Task DeleteShipment(string id) { try { var req = GrpcStringFactory.From(id); await ShippingClient.DeleteShipment(req); } catch (Exception e) { throw; } }
public async Task <IActionResult> GetIsMarketplaceSaleIdRegistered(string id) { try { var req = GrpcStringFactory.From(id); var resp = await ShippingClient.GetIsMarketplaceSaleIdRegistered(req); return(new ContentResult() { Content = $"{{ 'IsRegistered': {resp.Value} }}", ContentType = "application/json" }); } catch (Exception) { throw; } }