Exemplo n.º 1
0
 public bool Insert(HOADONNHAP phong)
 {
     try
     {
         using (var db = new QLPhongKaraokeEntities())
         {
             db.HOADONNHAPs.Add(phong);
             db.SaveChanges();
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }