コード例 #1
0
 public object GetBankBranchList()
 {
     try
     {
         return(bankBranchService.GetAll(new Bankbranch()));
     }
     catch (Exception ex)
     {
         return(errorLogService.InsertToErrorLog(ex, MethodBase.GetCurrentMethod().Name, Request.Headers["UserInfo"].ToString()));
     }
 }
コード例 #2
0
 public ActionResult Index()
 {
     try
     {
         return(View(Mapper.Map <IEnumerable <BankBranchViewModel> >(_bankBranchService.GetAll())));
     }
     catch (Exception ex)
     {
         return(JavaScript($"ShowResult('{ex.Message}','failure')"));
     }
 }