public static async Task <Ret> NavigateAsync(this Navigator navigator, string uri, Window window) { try { window.SetBusy(true); var ret = await navigator.RequestAsync(uri, MethodNames.Get, null); window.SetContent(ret); window.SetBusy(false); return(true); } catch (Exception ex) { return(ex); } }
public static async Task <Ret <Content> > RequestAsync(this Navigator navigator, string uri, string method, Payload data) { var entity = data.ToEntity(); return(await navigator.RequestAsync(uri, method, entity)); }
public static async Task <Ret <Content> > RequestAsync(this Navigator navigator, string uri, Method method, Entity data) { return(await navigator.RequestAsync(uri, method.GetName(), data)); }