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

            return(Ok());
        }
Exemple #2
0
 public async void AddProviderAction(GoForCheckOrRedirect checkOrRedirect)
 {
     _db.GoForCheckOrRedirects.Add(checkOrRedirect);
     await _db.SaveChangesAsync();
 }