public IActionResult GoForPropertyCheck([FromBody] GoForCheckOrRedirect providerAction) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } providerAction.DateCreated = DateTime.Now; _manager.AddProviderAction(providerAction); return(Ok()); }
public async void AddProviderAction(GoForCheckOrRedirect checkOrRedirect) { _db.GoForCheckOrRedirects.Add(checkOrRedirect); await _db.SaveChangesAsync(); }