public ActionResult CheckSite() { var model = maps.GetAll(db.GetLoans().amountToBeBorrrowed); try { if (model == null) { return(RedirectToAction("NotFound")); } if (model.ToList().Count == 0) { return(RedirectToAction("NotFound")); } } catch (Exception e) { _logger.Error(e.Message); } return(View(model)); }