コード例 #1
0
        //
        // GET: /Error/
        public virtual ActionResult ViewErrors()
        {
            //get all the errors here and paginate them for the admin/developer role
            IEnumerable <ErrorLog> errors = _ErrorService.GetAllErrorLog();

            return(View(errors.ToList()));
        }
コード例 #2
0
        public HttpResponseMessage GetAllErrorLog(HttpRequestMessage reqObject)
        {
            //_businessData = _IDataManipulation.GetBusinessData(reqObject);
            var result = _IErrorLogService.GetAllErrorLog();

            if (result != null)
            {
                _serviceResponse = _IDataManipulation.ResopnseWhenDataFound(result, "information has been fetched successfully");
            }
            else
            {
                _serviceResponse = _IDataManipulation.ResopnseWhenDataNotFound("Customer Types Not Found...");
            }
            _response = _IDataManipulation.CreateResponse(_serviceResponse, reqObject);
            return(_response);
        }