Example #1
0
        public TResponse Execute(TRequest request, ServiceRequestController controller)
        {
            var response = new TResponse();

            try
            {
                ExecuteExtention(request, response, controller);
            }
            catch (Exception ex)
            {
                response.SetFatalError(ex);
            }
            return(response);
        }
        public TResponse Execute(TRequest request, ServiceRequestController controller, TResponse response = null)
        {
            var thisResponse = response ?? new TResponse();

            try
            {
                ExecuteExtention(request, thisResponse, controller);
            }
            catch (Exception ex)
            {
                thisResponse.SetFatalError(ex);
            }
            return(thisResponse);
        }
Example #3
0
 public abstract void ExecuteExtention(TRequest request, TResponse response, ServiceRequestController controller);