private IHttpResponse HandleRequest(IHttpRequest httpRequest) { if (httpRequest.Path.Contains(".")) { return(this.resourceHandler.Handle(httpRequest)); } else { string sessionIdToSend = this.SetRequestSession(httpRequest); var response = mvcRequestHandler.Handle(httpRequest); this.SetResponseSession(response, sessionIdToSend); return(response); } }
public SupplierOutput Get(string id, [FromServices] IHandleable <string, SupplierOutput> usecase) { return(usecase.Handle(id)); }
public SupplierIdOutput Post([FromBody] SupplierInput input, [FromServices] IHandleable <SupplierInput, SupplierIdOutput> usecase) { return(usecase.Handle(input)); }