Ejemplo n.º 1
0
 /// <summary>
 /// Add a new CD_DVD_BR
 /// </summary>
 /// <param name="cD_DVD_BR">The CD_DVD_BR to add</param>
 /// <returns>True if CD_DVD_BR is added successfuly otherwise false</returns>
 public bool AddNewCD_DVD_BR(CD_DVD_BR cD_DVD_BR)
 {
     if (cD_DVD_BR != null)
     {
         db.CD_DVD_BR.Add(cD_DVD_BR);
         db.SaveChanges();
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Edit a CD_DVD_BR
 /// </summary>
 /// <param name="cD_DVD_BR">CD_DVD_BR object</param>
 public void EditCD_DVD_BR(CD_DVD_BR cD_DVD_BR)
 {
     db.Entry(cD_DVD_BR).State = EntityState.Modified;
     db.SaveChanges();
 }