private void MemberSettings_GetById() { DataTable dtSettings; Model.MemberSettings memberSettings = new Model.MemberSettings() { MemberId = this.MemberId }; using (var scope = Startup.Container.BeginLifetimeScope()) { var MemberSettings = scope.Resolve <IMemberSettings>(); dtSettings = MemberSettings.MemberSettings_GetById(memberSettings); } if (dtSettings != null && dtSettings.Rows.Count > 0) { rbtnIsActive.SelectedValue = (dtSettings.Rows[0]["IsActive"] == DBNull.Value) ? "False" : dtSettings.Rows[0]["IsActive"].ToString(); rbtnIsAppLoginEnabled.SelectedValue = (dtSettings.Rows[0]["IsAppLoginEnabled"] == DBNull.Value) ? "False" : dtSettings.Rows[0]["IsAppLoginEnabled"].ToString(); txtUserName.Text = dtSettings.Rows[0]["UserName"].ToString(); } }
public DataTable MemberSettings_GetById(Model.MemberSettings memberSettings) { return(_MemberSettings.MemberSettings_GetById(memberSettings)); }
public int MemberSettings_Save(Model.MemberSettings memberSettings) { return(_MemberSettings.MemberSettings_Save(memberSettings)); }