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

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

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

            return(LongTermGoalDTO.DbSetToDtoList(ltgs));
        }