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);
            }
        }
Пример #2
0
 public SupplierOutput Get(string id,
                           [FromServices] IHandleable <string, SupplierOutput> usecase)
 {
     return(usecase.Handle(id));
 }
Пример #3
0
 public SupplierIdOutput Post([FromBody] SupplierInput input,
                              [FromServices] IHandleable <SupplierInput, SupplierIdOutput> usecase)
 {
     return(usecase.Handle(input));
 }