public IActionResult ValidatePerson(Person person) { if (!ModelState.IsValid) { return(View("Create")); } context.Add(person); context.SaveChanges(); return(View("PersonAdded", person)); }
public void AddOrder(object model) { _ctx.Add(model); }