Beispiel #1
0
        // GET: TransactionType/Details/5
        public ActionResult Details(int id)
        {
            var transactionType = _service.GetDetails(id);

            if (Request.IsAjaxRequest())
            {

                //return PartialView("_details",model);
                ResponseMessage responseMessage = new ResponseMessage(MessageType.Info)
                {
                    Status = true,
                    Message = "",
                    Data = transactionType,
                    Title = "Fetch Detail",
                };
                return Json(responseMessage, JsonRequestBehavior.AllowGet);
            }
            return View(transactionType);
        }