public IActionResult Post([FromBody] RegistrationData value) { if (value.HasErrors()) { return(BadRequest()); } // TODO: Save data to database return(Created("api/registration", value)); }