Esempio n. 1
0
        public async Task GetServersListFromApiImpl()
        {
            var servers = await ServersHelper.GetServersListFromApi(_client);

            var unitOfWork = UnitOfWorkHelper.GetUnitOfWork();


            unitOfWork.Servers.RemoveRange(unitOfWork.Servers.GetAll());
            unitOfWork.Servers.AddRange(servers);
            unitOfWork.Save();
        }