示例#1
0
 public void Initialize()
 {
     if (service.GetAllAsync().Result.Count == 0)
     {
         {
             service.AddAsync(new House
             {
                 Adress            = "Sumskaya38",
                 NumberOfHomemates = 20,
                 Floors            = 5
             });
         }
     }
 }
示例#2
0
        public async Task <List <House> > Get()
        {
            logger.LogInformation($"{DateTime.Now.ToString()} GET request to Houses db");

            return(await service.GetAllAsync());
        }