예제 #1
0
        public bool AddCauThu(eCauThu e)
        {
            CauThu cauthu = new CauThu {
                tencauthu = e.tencauthu, email = e.email, iddoibong = e.iddoibong, macauthu = e.macauthu, sodt = e.sodt
            };

            db.CauThus.Add(cauthu);
            db.SaveChanges();
            return(true);
        }
 public bool AddDoiBong(eDoiBong e)
 {
     db.DoiBongs.Add(new DoiBong {
         madoibong = e.madoibong, tendoibong = e.tendoibong
     });
     db.SaveChanges();
     return(true);
 }