public IActionResult GetAllLocations() { try { return(Ok(_locationServices.GetAllLocations())); } catch (Exception) { return(StatusCode(500)); } }