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

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