public decimal Extract(OpenFiscaResource response)
        {
            var personKey  = response.persons.First().Key;
            var dictResult = response.GetProp(personKey, OF.TotalOTHours);

            return(Convert.ToDecimal(dictResult));
        }
Ejemplo n.º 2
0
        public decimal Extract(OpenFiscaResource response)
        {
            decimal totalDailyHours = 0m;

            foreach (var day in response.persons)
            {
                var dictResult   = response.GetProp(day.Key, OF.DailyOTHours);
                var numericValue = Convert.ToDecimal(dictResult);
                totalDailyHours += numericValue;
            }
            return(totalDailyHours);
        }