예제 #1
0
        public GoalModel GetUserGoal(int userId)
        {
            var goal   = _repo.FindCurrentYearByUser(userId);
            var totals = _shifts.GetShiftTotals(userId, goal.YearId);

            goal.RvuRate             = _users.FindUserRvuRate(userId);
            goal.RvuTotalCompleted   = totals.RvuTotalCompleted;
            goal.ShiftHoursCompleted = totals.ShiftHoursCompleted;
            goal.ShiftHoursRemaining = totals.ShiftHoursRemaining;
            return(goal);
        }