public ActionResult Index() { WeddingRepos weddingRepos = new WeddingRepos(); var persons = weddingRepos.GetPersons(); return(View(persons.ToList())); }
public JsonResult Index(Person person) { WeddingRepos weddingRepos = new WeddingRepos(); weddingRepos.AddOrGetPerson(person); //weddingContext return(new JsonResult()); }