Exemplo n.º 1
0
        public List <ClsUserDetails> GetPreviousStageDetails(int argUserID, int stageDetails, string LonNumber)
        {
            UserMaster            Table         = new UserMaster();
            DataSet               ds            = Table.GetpreviousDetails(argUserID, stageDetails, LonNumber);
            List <ClsUserDetails> ObjectDetails = new List <ClsUserDetails>();

            if (HasData(ds, 0))
            {
                if (ds.Tables[0].Rows[0] != null)
                {
                    for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                    {
                        ClsUserDetails details = new ClsUserDetails();
                        details.UserID = ds.Tables[0].Rows[i]["nID"].ToString();
                        ObjectDetails.Add(details);
                    }
                }
            }
            return(ObjectDetails);
        }