public Role GetRol(int userid) { DataTable dt = SysClient_Servic.GetRol(userid); if (dt.Rows.Count > 1) { throw new Exception("role table for this client is more than one record!!! this is invalid data"); } return(Role.Convert(dt)); }
public bool LoginHashPassword(string username, string password) { SysProperty.Client.Username = username; SysProperty.Client.Password = password; if (SysClient_Servic.LoginHashPassword(SysProperty.Client)) { userauthorizeMan_Logic u = new userauthorizeMan_Logic(); SysProperty.Client.Roles = u.GetRol(SysProperty.Client.UserID); return(true); } SysProperty.Client = new SysClient(); return(false); }