public static async Task <GrpcVoid> SetShipmentAutoUpdate(GrpcSetAutoUpdateRequest req) { try { return(await Client.SetShipmentAutoUpdateAsync(req)); } catch (Exception) { throw; } }
public override async Task <GrpcVoid> SetShipmentAutoUpdate(GrpcSetAutoUpdateRequest request, ServerCallContext context) { try { return(await Controller.SetShipmentAutoUpdate(request)); } catch (Exception e) { throw HandleException(e); } }
public static async Task <GrpcVoid> SetShipmentAutoUpdate(GrpcSetAutoUpdateRequest grpcRequest) { try { var adapter = new GrpcSetAutoUpdateRequestAdapter(grpcRequest); var id = adapter.GetId(); var toggle = adapter.GetBool(); await ShipmentUseCases.Set.AutoUpdate(id, toggle); return(GrpcVoid); } catch (Exception e) { throw; } }
public GrpcSetAutoUpdateRequestAdapter(GrpcSetAutoUpdateRequest req) { Request = req; }