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