예제 #1
0
파일: UserDL.cs 프로젝트: Dharan21/l2g_API
        public List <EmploymentStatus> GetAllEmployeeStatues()
        {
            List <l2g_tbl_EmployeeStatus> statusEntities = db.l2g_tbl_EmployeeStatus.ToList();
            List <EmploymentStatus>       statuses       = new List <EmploymentStatus>();

            foreach (l2g_tbl_EmployeeStatus status in statusEntities)
            {
                statuses.Add(MappingConfig.EmployeeStatusToBusinessEntity(status));
            }
            return(statuses);
        }