internal void DeleteIslem(sevk sevk)
 {
     using (SOHATSEntities context = new SOHATSEntities())
     {
         var entity = context.Entry(sevk);
         entity.State = EntityState.Deleted;
         context.SaveChanges();
     }
 }
 public void AddCikis(cikis cikis)
 {
     using (SOHATSEntities context = new SOHATSEntities())
     {
         var entity = context.Entry(cikis);
         entity.State = EntityState.Added;
         context.SaveChanges();
     }
 }
 public void DeletePoliklinik(poliklinik polik)
 {
     using (SOHATSEntities context = new SOHATSEntities())
     {
         var entity = context.Entry(polik);
         entity.State = EntityState.Deleted;
         context.SaveChanges();
     }
 }
 public void UpdateHasta(hasta hasta)
 {
     using (SOHATSEntities context = new SOHATSEntities())
     {
         var entity = context.Entry(hasta);
         entity.State = EntityState.Modified;
         context.SaveChanges();
     }
 }
 internal void DeleteHasta(hasta hasta)
 {
     using (SOHATSEntities context = new SOHATSEntities())
     {
         var entity = context.Entry(hasta);
         entity.State = EntityState.Deleted;
         context.SaveChanges();
     }
 }
 public void AddKullanici(kullanici kullanici1)
 {
     using (SOHATSEntities context = new SOHATSEntities())
     {
         var entity = context.Entry(kullanici1);
         entity.State = EntityState.Added;
         context.SaveChanges();
     }
 }
 public void UpdateSevk(sevk s, bool durum)
 {
     using (SOHATSEntities context = new SOHATSEntities())
     {
         var entity = context.Entry(s);
         entity.State = EntityState.Modified;
         context.SaveChanges();
     }
 }
 public void AddSevk(sevk sevk)
 {
     using (SOHATSEntities context = new SOHATSEntities())
     {
         var entity = context.Entry(sevk);
         entity.State = EntityState.Added;
         context.SaveChanges();
     }
 }
 public bool addHasta(hasta hasta)
 {
     using (SOHATSEntities context = new SOHATSEntities())
     {
         try
         {
             var entity = context.Entry(hasta);
             entity.State = EntityState.Added;
             context.SaveChanges();
             return(true);
         }
         catch (System.Data.Entity.Infrastructure.DbUpdateException)
         {
             return(false);
         }
     }
 }