I am trying to add 2 variable in my razor view. I have assigned some fixed values to Value1 and Value2 in web.config file. But instead of adding values its concatenating (Instead of add 10+10=20 I am getting 1010) with below code.
@model Myproject.Models.Cost
@{
   ViewBag.Title = "About";
   var addvalue1 = ConfigurationManager.AppSettings["Value1"];
   var addvalue2 = ConfigurationManager.AppSettings["Value2"];
   var total = addvalue1 + addvalue2;
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
@using (Html.BeginForm())
{
   <p>Your total is : @total</p>
}
