コード例 #1
0
        public double Progress(int id)
        {
            var status   = groupUpdateRepository.GetById(id).status;
            var target   = groupGoalRepository.GetById(groupUpdateRepository.GetById(id).GroupGoalId).Target;
            var progress = (status / target) * 100;

            return((double)progress);
        }
コード例 #2
0
        public GroupGoal GetGroupGoal(int id)
        {
            var GroupGoal = GroupGoalRepository.GetById(id);

            return(GroupGoal);
        }