示例#1
0
        public SimpleResponse <List <PaymentDto> > ReadAll()
        {
            var response = new SimpleResponse <List <PaymentDto> >();

            try
            {
                var resp = iPaymentBusiness.ReadAll();

                response.ResponseCode    = resp.ResponseCode;
                response.ResponseMessage = resp.ResponseMessage;
                response.RCode           = resp.RCode;
                response.Data            = SimpleMapper.MapList <PaymentViewModel, PaymentDto>(resp.Data);
            }
            catch (Exception ex)
            {
                response.ResponseCode    = BusinessResponseValues.InternalError;
                response.ResponseMessage = "Okuma iþleminde hata oluþtu.";
                SimpleFileLogger.Instance.Error(ex);
            }

            response.Data = response.Data ?? new List <PaymentDto>();
            return(response);
        }
        public SimpleResponse <List <PaymentViewModel> > ReadAll()
        {
            var response = iPaymentBusiness.ReadAll();

            return(response);
        }
示例#3
0
        public IActionResult Index()
        {
            var response = iPaymentBusiness.ReadAll();

            return(View(response.Data));
        }
示例#4
0
        public IHttpActionResult ReadAll()
        {
            var modelResult = iPaymentBusiness.ReadAll();

            return(Json(modelResult));
        }