public ActionResult GetPriceOnSize(string size, string currentPrice) { try { string v = Request.QueryString["value"]; DisplayModel model = new DisplayModel(); var pizzaSizePrice = /*db.Pizzas.Select(t => t.PizzaPrice).FirstOrDefault();*/ db.GetPriceOnSizeSelected(size).SingleOrDefault(); var newPrice = Convert.ToDecimal(currentPrice) + pizzaSizePrice; Menu(size); return(Json(new { price = newPrice.ToString() })); } catch (Exception e) { throw; } }