예제 #1
0
        public IEnumerable <LongTermGoalDTO> GetManyByProjectId([FromRoute] int id)
        {
            var ltgs = _context.LongTermGoals.Where(x => x.ProjectId == id && !x.Archived);

            return(LongTermGoalDTO.DbSetToDtoList(ltgs));
        }
예제 #2
0
        public IEnumerable <LongTermGoalDTO> GetMostRecent()
        {
            var ltgs = _context.LongTermGoals.Where(x => !x.Archived).OrderByDescending(x => x.LastModified).Take(10);

            return(LongTermGoalDTO.DbSetToDtoList(ltgs));
        }
예제 #3
0
        public IEnumerable <LongTermGoalDTO> GetLongTermGoals()
        {
            var ltgs = _context.LongTermGoals;

            return(LongTermGoalDTO.DbSetToDtoList(ltgs));
        }