public IHttpActionResult Get(decimal amount)
        {
            logger.Info($" amount requested {amount}");
            try
            {
                var model = _loan.GetAll(amount);
                if (model != null)
                {
                    return(Ok(model));
                }
            }
            catch (Exception e)
            {
                logger.Error(e.InnerException ?? e);
                return(InternalServerError(e));
            }

            return(NotFound());
        }
        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));
        }