Пример #1
0
        public List <Employee> GetEmployeeList(Active group)
        {
            try
            {
                var employeelist = EmployeeAccessor.FetchEmployeeList(group);

                if (employeelist.Count > 0)
                {
                    return(employeelist);
                }
                else
                {
                    throw new ApplicationException("No records found");
                }
            }
            catch (Exception)
            {
                //*** we should sort the possible exceptions and return diff messages for each.
                throw;
            }
        }