public ActionResult GetHistoryList() { var history = _mortgageService.GetHistory(); if (history == null) { return(new CustomJson(new CustomJsonModel { Success = false, Message = _errorMessage }, JsonRequestBehavior.AllowGet)); } return(new CustomJson(new CustomJsonModel { Success = true, History = history }, JsonRequestBehavior.AllowGet)); }