public object Save(BasicInfo basicInfo) { bool success = true; if (ModelState.IsValid) { User user = OrnamentContext.MemberShip.CurrentUser(); basicInfo.UpdateOn(user); _memberShipFactory.CreateUserDao().SaveOrUpdate(user); OrnamentContext.MemberShip.SwitchLanguage(user.GetLanguage()); } else { success = false; } return(new { success, messages = ModelState.Values }); }