Beispiel #1
0
        public List <ServiceType> SelectAllCuntries()
        {
            var returnedEntities = new List <ServiceType>();

            try
            {
                using (var repository = new ServiceTypeRepository())
                {
                    foreach (var entity in repository.SelectAll())
                    {
                        //entity.NetSalary = GetNetSalary(entity.GrossSalary, entity.Age);
                        returnedEntities.Add(entity);
                    }
                }

                return(returnedEntities);
            }
            catch (Exception ex)
            {
                //Log exception error
                _loggingHandler.LogEntry(ExceptionHandler.GetExceptionMessageFormatted(ex), true);

                throw new Exception("BusinessLogic:ServiceTypeBusiness::SelectAllServiceType::Error occured.", ex);
            }
        }