public ActionResult Summary(SummaryViewModel model) { var dbid = Session["patientId"].ToString(); int db_id = Convert.ToInt32(dbid); var db_logic = new DatabaseLogic(connection, db_id); db_logic.PostSummaryInputData(model); String s = "https://s3-us-west-2.amazonaws.com/ehr-prod/Patient" + Session["mrn"].ToString() + ".png"; model.imagePath = s; return(RedirectToAction("Summary", new { databaseId = db_id })); }