Beispiel #1
0
 public ReturnWrapper(dynamic data, List <string> messageList)
 {
     StatusCode = HttpStatusCode.OK;
     returnObj  = new ReturnObj
     {
         IsSuccess        = true,
         FormattedMessage = messageList,
         Data             = data
     };
 }
Beispiel #2
0
        public ReturnWrapper(HttpStatusCode statusCode, List <string> message)
        {
            StatusCode = statusCode;
            bool successFlag;

            if (statusCode == HttpStatusCode.OK)
            {
                successFlag = true;
            }
            else
            {
                successFlag = false;
            }

            returnObj = new ReturnObj
            {
                IsSuccess        = successFlag,
                FormattedMessage = message,
                Data             = null
            };
        }