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); }
public IActionResult Index() { var response = iPaymentBusiness.ReadAll(); return(View(response.Data)); }
public IHttpActionResult ReadAll() { var modelResult = iPaymentBusiness.ReadAll(); return(Json(modelResult)); }