コード例 #1
0
        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);
        }
コード例 #2
0
 public ActionResult Create()
 {
     Person person = new Person();
     return View(person);
 }