public IActionResult AddLocation(Locations location) { try { locationServices.AddLocation(location); return(CreatedAtAction("AddLocation", location)); } catch (Exception) { return(BadRequest()); } }