public ActionResult SiteDetails(int Id)
        {
            if (!ModelState.IsValid)
            {
                return(RedirectToAction("NotFound"));
            }

            var model = maps.Get(Id);

            ViewBag.id = Id;
            db.CalculateInterest(model.Rate);
            var models = db.Get();

            if (models == null)
            {
                return(RedirectToAction("NotFound"));
            }

            models.WebsiteName    = model.Loansite;
            models.Rate           = model.Rate;
            models.CalculatedLoan = db.CalculateInterest(model.Rate);

            return(View(models));
        }
        public IHttpActionResult Get(int id)
        {
            try
            {
                var model = _loan.Get(id);
                if (model != null)
                {
                    logger.Info($" site viewed {model.Loansite} amount rate {model.Rate}");
                    return(Ok(model));
                }
            }
            catch (Exception e)
            {
                logger.Error(e.InnerException ?? e);
                return(InternalServerError(e));
            }

            return(NotFound()
                   );
        }