/// <summary> /// Gets the Domain Name /// </summary> /// <returns></returns> public List <Domain> GetDomainName() { List <BusinessEntities.Domain> lstDomain = null; try { Rave.HR.DataAccessLayer.Projects.Projects objDomainDAL = new Rave.HR.DataAccessLayer.Projects.Projects(); DataTable dtDomain = new DataTable(); dtDomain = objDomainDAL.GetDomainName(); lstDomain = new List <BusinessEntities.Domain>(); BusinessEntities.Domain objDomain = null; foreach (DataRow drDomain in dtDomain.Rows) { objDomain = new BusinessEntities.Domain(); objDomain.DomainName = drDomain["Domain"].ToString(); objDomain.DomainId = int.Parse(drDomain["ID"].ToString()); lstDomain.Add(objDomain); } } catch (RaveHRException ex) { throw ex; } catch (Exception ex) { throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, PROJECTS, "GetDomain", EventIDConstants.RAVE_HR_PROJECTS_BUSNIESS_LAYER); } return(lstDomain); }