public HttpResponseMessage Get(string transactionID)
        {
            var Result = new ResponseResult <RefundDTO>()
            {
                Message     = string.Empty,
                Description = string.Empty
            };

            Result.Data = _RefundService.Get().FirstOrDefault(x => x.TransactionID == transactionID);
            return(Request.CreateResponse(Result != null ? HttpStatusCode.OK : HttpStatusCode.BadRequest, Result));
        }
Beispiel #2
0
        public ActionResult Index()
        {
            var model = _RefundService.Get();

            return(View(model));
        }