public ActionResult AddRestaurant(string Name, string Description) { var restaurant = new Restaurant(); restaurant.Name = Name; restaurant.Description = Description; db.Restaurants.Add(restaurant); db.SaveChanges(); return(Json(restaurant, JsonRequestBehavior.AllowGet)); }