Exemplo 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));
        }
Exemplo 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));
        }
Exemplo n.º 3
0
        public IEnumerable <LongTermGoalDTO> GetLongTermGoals()
        {
            var ltgs = _context.LongTermGoals;

            return(LongTermGoalDTO.DbSetToDtoList(ltgs));
        }