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