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); }
public GroupGoal GetGroupGoal(int id) { var GroupGoal = GroupGoalRepository.GetById(id); return(GroupGoal); }