public bool Update(FullUser form) { User user = new User { ID = form.ID, Enabled = form.Enabled, Name = form.Name, }; UserInfo ui = new UserInfo { CnName = form.CnName, Address = form.Address, Identity = form.Identity, Mobile = form.Mobile, QQ = form.QQ, Remark = form.Remark, WX = form.WX, }; return bll.Update(user, ui, form.Roles); }
public string Add(FullUser form) { User user = new User { ID = form.ID, Enabled = form.Enabled, Password = form.Password, Name = form.Name, IsDeleted = 0, }; UserInfo ui = new UserInfo { CnName = form.CnName, Address = form.Address, Identity = form.Identity, Mobile = form.Mobile, QQ = form.QQ, Remark = form.Remark, WX = form.WX, }; return bll.Add(user, ui, form.Roles); }