bool IBaseControl.LoginControl(string Email, string Password) { PIKCV.BUS.Company objCompany = new PIKCV.BUS.Company(); DataTable dt = objCompany.LoginControl(Email, Password); if (dt.Rows.Count > 0) { this.smIsLogin = true; this.smCompanyID = Convert.ToInt32(dt.Rows[0]["CompanyID"]); this.smFirstName = dt.Rows[0]["ContactName"].ToString(); this.smLastName = dt.Rows[0]["ContactLastName"].ToString(); this.smCompanyName = dt.Rows[0]["CompanyName"].ToString(); this.smLastLoginDate = Convert.ToDateTime(dt.Rows[0]["LastLoginDate"]); this.smPikCredi = dt.Rows[0]["Credits"].ToString(); this.smMemberType = PIKCV.COM.EnumDB.MemberTypes.Company; this.smIsFirstLogin = Convert.ToBoolean(dt.Rows[0]["IsFirstLogin"]); return(true); } return(false); }