Пример #1
0
        public ActionResult CreateAddress(int id, Address address)
        {
            var person = session.Load<Person>(id);
            address.Owner = person;
            session.Save(address);

            return new RedirectResult("/Home/Details/" + id);
        }
Пример #2
0
        public ActionResult CreateAddress()
        {
            var address = new Address();

            return View(address);
        }