public async Task <Developer> Add(Developer developer)
        {
            var result = await context.Developers.AddAsync(developer);

            await context.SaveChangesAsync();

            return(result.Entity);
        }
Esempio n. 2
0
        public async Task <Country> Add(Country country)
        {
            var result = await context.Countries.AddAsync(country);

            await context.SaveChangesAsync();

            return(result.Entity);
        }
        public async Task <City> Add(City city)
        {
            var result = await context.Cities.AddAsync(city);

            await context.SaveChangesAsync();

            return(result.Entity);
        }