public ActionResult Create(Person person) { if (ModelState.IsValid) { CreatePersonRequest request = new CreatePersonRequest(); request.Person = person; CreatePersonResponse response = _projectorService.CreatePerson(request); if (response.Success) { return RedirectToAction("Index", "Projects"); } } return View(person); }
public ActionResult Create() { Person person = new Person(); return View(person); }