Ejemplo n.º 1
0
 public static void PozisyonGuncelle(PozisyonDetayDTO detay, bool control)
 {
     PozisyonDAO.PozisyonGuncelle(detay);
     if (control)
     {
         PersonelDAO.PersonelGuncelle(detay);
     }
 }
        public static void PozisyonGuncelle(PozisyonDetayDTO detay)
        {
            POZISYON pz = db.POZISYONs.First(x => x.ID == detay.ID);

            pz.PozisyonAd  = detay.PozisyonAD;
            pz.DepartmanID = detay.DepartmanID;
            db.SubmitChanges();
        }
        public static void PersonelGuncelle(PozisyonDetayDTO detay)
        {
            List <PERSONEL> list = db.PERSONELs.Where(x => x.PozisyonID == detay.ID).ToList();

            foreach (var item in list)
            {
                item.DepartmanID = detay.DepartmanID;
            }
            db.SubmitChanges();
        }