public void Update(Area area) { using (advYumitGyulerContext context = new advYumitGyulerContext()) { var addedEntity = context.Entry(area); addedEntity.State = EntityState.Modified; context.SaveChanges(); } }
public void Add(ActivityLog activityLog) { using (advYumitGyulerContext context = new advYumitGyulerContext()) { var addedEntity = context.Entry(activityLog); addedEntity.State = EntityState.Added; context.SaveChanges(); } }