public async Task <IActionResult> GetAllSchools()
        {
            var query    = new GetAllSchoolsQuery();
            var response = await _mediator.Send(query);

            return(Ok(response));
        }
 public async Task <List <School> > Handle(GetAllSchoolsQuery request, CancellationToken cancellationToken)
 {
     return(await _context.Schools.ToListAsync());
 }