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