public IActionResult GoForPropertyCheck([FromBody] GoForCheckOrRedirect providerAction) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } providerAction.DateCreated = DateTime.Now; _manager.AddProviderAction(providerAction); return(Ok()); }