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)); }