public async Task <IHttpActionResult> CalculateFamiliesPerCampus(ParentStudentCountFilterModel request) { var campusLeader = SecurityPrincipal.Current; var model = await _communicationsService.GetFamilyMemberCountByCampusGradeLevelAndProgram(campusLeader.PersonUSI, request); if (model == null) { return(NotFound()); } return(Ok(model)); }
public Task <ParentStudentCountModel> GetFamilyMembersByGradesAndPrograms(int staffUsi, ParentStudentCountFilterModel model, string[] validParentDescriptors, DateTime today) { throw new NotImplementedException(); }
public async Task <ParentStudentCountModel> GetFamilyMemberCountByCampusGradeLevelAndProgram(int staffUsi, ParentStudentCountFilterModel model) { var validParentDescriptors = _customParametersProvider.GetParameters().descriptors.validParentDescriptors; var students = await _communicationsRepository.GetFamilyMembersByGradesAndPrograms(staffUsi, model, validParentDescriptors, _dateProvider.Today()); return(students); }