예제 #1
0
        //Subhra End


        public List <Category> TechnologyCategory()
        {
            List <BusinessEntities.Category> lstTechnologyCategory = null;

            try
            {
                Rave.HR.DataAccessLayer.Projects.Projects objTechnologyCategoryDAL = new Rave.HR.DataAccessLayer.Projects.Projects();

                DataTable dtTechnologyCategory = new DataTable();
                dtTechnologyCategory = objTechnologyCategoryDAL.TechnologyCategory();

                lstTechnologyCategory = new List <BusinessEntities.Category>();
                BusinessEntities.Category objTechnologyCategory = null;
                foreach (DataRow drTechnologyCategory in dtTechnologyCategory.Rows)
                {
                    objTechnologyCategory = new BusinessEntities.Category();
                    objTechnologyCategory.CategoryName = drTechnologyCategory["Category"].ToString();
                    objTechnologyCategory.CategoryId   = int.Parse(drTechnologyCategory["ID"].ToString());
                    lstTechnologyCategory.Add(objTechnologyCategory);
                }
            }
            catch (RaveHRException ex)
            {
                throw ex;
            }

            catch (Exception ex)
            {
                throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, PROJECTS, "TechnologyCategory", EventIDConstants.RAVE_HR_PROJECTS_BUSNIESS_LAYER);
            }

            return(lstTechnologyCategory);
        }