public void Post([FromBody] Person value) { var people = context.Set <Person>(); people.Add(value); context.SaveChanges(); }
public async Task UpdateAsync(Person person) { _context.Entry(person).State = EntityState.Modified; _context.Set <Person>().Update(person); await _context.SaveChangesAsync(); }
public AzureDbRepository(AzureDbContext context, IAzureUnitOfWork uow) { Context = context; Uow = uow; DbSet = context.Set <T>(); }