public async Task <ActionResult <IEnumerable <Mapping> > > GetAllMappings() { var mappings = await _mappingService.GetAllMappings(); if (mappings == null) { return(NotFound(mappings)); } return(new ObjectResult(mappings) { StatusCode = 200 }); }