Prefix for multiple objects

Feb 17, 2010 at 11:08 AM
Edited Feb 17, 2010 at 11:08 AM

Hi!

I have this code in my controller:

try
{
    _userService.Insert(user);
}
catch (RulesException rulesException)
{
    rulesException.AddModelStateErrors(ModelState, "User");
}

But what to do, if you have a form with two objects. The input fields name would be User.Firstname and maybe Address.Street, but it's only possible to pass one prefix?

Thanks!

Regards.

 

 

 

            try
            {
                _userService.Insert(user);
            }
            catch (RulesException rulesException)
            {
                rulesException.AddModelStateErrors(ModelState, "User");
            }