-2
if (ModelState.IsValid)
{
using (mydataEntities1 db = new mydataEntities1())
db.Contactmodels.Add(model);
db.SaveChanges();
ModelState.Clear();
model = null;
ViewBag.Message = "Thanks for contacting us";
錯誤是名稱db在當前上下文中不存在。 請幫我解決這個問題。該名稱在當前上下文中不存在