Exemple #1
0
        public JsonResponse(IServiceResponse response)
        {
            if (!response.Success)
            {
                Log.Error(response.Exception);
            }

            Response = new JsonResponseWrapper
            {
                Success = response.Success,
                Message = response.Message,
                Result  = response.GetResult()
            };
        }