Exemplo n.º 1
0
 public async Task UpdateKupacAsync(DAL.Model.Kupac kupac)
 {
     context.Entry(kupac).State = System.Data.Entity.EntityState.Modified;
     await context.SaveChangesAsync();
 }
Exemplo n.º 2
0
 public async Task InsertKupacAsync(DAL.Model.Kupac kupac)
 {
     context.Kupac.Add(kupac);
     await context.SaveChangesAsync();
 }