public async Task <ActionResult <string> > Post([FromBody] DatabaseHostModel dbhost)
        {
            await _repo.AddHost(dbhost);

            _cache.Remove(CacheKeys.Entry);

            return("Record Added");
        }
Пример #2
0
 public Task AddHost(DatabaseHostModel dbHost)
 {
     //TODO: gonna need to actually update the JSON file in the \Data folder.
     _dbHosts.Add(dbHost);
     return(Task.CompletedTask);
 }