예제 #1
0
 public EditProfileModel()
 {
     ChangePasswordModel = new ChangePasswordModel();
     EditMainInfoModel = new EditMainInfoModel();
     EditAdvanceInfoModel = new EditAdvanceInfoModel();
     EditBindInfoModel = new EditBindInfoModel();
 }
        public ActionResult EditBindInfo(EditBindInfoModel model)
        {
            if (ModelIsValid)
            {
                var data = new UserInfoData
                {
                    UserId = model.UserId,
                    SiteLink = model.SiteLink,
                    Icq = model.Icq,
                    Skype = model.Skype,
                    BattleLog = model.BattleLog,
                    Steam = model.Steam
                };

                Execute(() => _accountService.UpdateBindInfo(data));
            }

            return View("_EditBindInfoPartial", model);
        }