public void GetValueVoid([PathVariable] int id, [RequestParam] string test, [RequestQuery] TestServiceParam param) { try { Task.FromResult(new QueryResult <JObject>()); } catch (Exception) { _testService1.GetValueVoidAsync(id, test, param); } }
public QueryResult <JObject> GetQueryResultValue([PathVariable("id")] string id, [RequestQuery] TestServiceParam param) { try { return(new QueryResult <JObject>()); } catch (Exception) { return(_testService1.GetQueryResultValue(id, param)); } }
public Task <JObject> GetValueAsync([PathVariable] int id, [RequestParam] string test, [RequestQuery] TestServiceParam param) { throw new NotImplementedException(); }
public Task <string> FormTestAsync([RequestForm] TestServiceParam param) { throw new NotImplementedException(); }
public Task <QueryResult <JObject> > GetQueryResultValueAsync([PathVariable("id")] string id, [RequestQuery] TestServiceParam param) { try { return(Task.FromResult(new QueryResult <JObject>())); } catch (Exception) { return(_testService1.GetQueryResultValueAsync(id, param)); } }
public Task <string> UploadFileAsync(IRequestFile file, TestServiceParam param) { throw new NotImplementedException(); }
public Task PostValueForm2Async([PathVariable] int id, [RequestParam] string test, [RequestForm] TestServiceParam param1, [RequestForm] TestServiceParam param2) { throw new NotImplementedException(); }
public void GetValueVoid([PathVariable] int id, [RequestParam] TestServiceParam queryParam, [RequestQuery] TestServiceParam param) { }
public Task PostValueAsync([PathVariable] int id, [RequestParam] string test, [RequestBody] TestServiceParam param) { //return _testService1.PostValueAsync(id, test, param); return(Task.FromResult <object>(null)); }
public Task <IQueryResult <TestServiceParam> > GetQueryResultValueAsync([PathVariable("id")] string id, [RequestQuery] TestServiceParam param) { return(Task.FromResult <IQueryResult <TestServiceParam> >(new QueryResult <TestServiceParam>() { Data = param, StatusCode = System.Net.HttpStatusCode.BadRequest })); }
public IQueryResult <TestServiceParam> GetQueryResultValue([PathVariable("id")] string id, [RequestQuery] TestServiceParam param) { return(new QueryResult <TestServiceParam>() { Data = param, StatusCode = System.Net.HttpStatusCode.BadRequest }); }
public Task <JObject> GetValueAsync([PathVariable("id")] string id, string text, TestServiceParam param) { Lazy <Task <JObject> > lazy = new Lazy <Task <JObject> >(); Func <Task <JObject> > fallback = new Func <Task <JObject> >(delegate { return(_testService2.GetValueAsync(int.Parse(id), text, param)); }); return(GetValueAsync(id, fallback)); }