public IActionResult Post([FromBody] Country country) { if (country == null) { return(BadRequest("No information was provided")); } else if (Country.AddCountry(context, country)) { return(CreatedAtRoute("Country successfully added!", new { Code = country.Code }, country)); } else { return(BadRequest("Conflicting with similar country code.Please enter different code")); } }