public IEnumerable <LongTermGoalDTO> GetManyByProjectId([FromRoute] int id) { var ltgs = _context.LongTermGoals.Where(x => x.ProjectId == id && !x.Archived); return(LongTermGoalDTO.DbSetToDtoList(ltgs)); }
public IEnumerable <LongTermGoalDTO> GetMostRecent() { var ltgs = _context.LongTermGoals.Where(x => !x.Archived).OrderByDescending(x => x.LastModified).Take(10); return(LongTermGoalDTO.DbSetToDtoList(ltgs)); }
public IEnumerable <LongTermGoalDTO> GetLongTermGoals() { var ltgs = _context.LongTermGoals; return(LongTermGoalDTO.DbSetToDtoList(ltgs)); }