public void Delete(Promotion data)
 {
     PromotionDAO.Delete(data);
 }
 public Promotion Add(Promotion data)
 {
     PromotionDAO.Add(data);
     return data;
 }
 public void Update(Promotion data)
 {
     PromotionDAO.Update(data);
 }
Beispiel #4
0
 /// <summary>
 /// Delete Promotion from database.
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public void Delete(Promotion data)
 {
     HibernateTemplate.Delete(data);
 }
Beispiel #5
0
 /// <summary>
 /// Add Promotion to database.
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public Promotion Add(Promotion data)
 {
     HibernateTemplate.Save(data);
     return data;
 }
Beispiel #6
0
 /// <summary>
 /// Update Promotion to database.
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public void Update(Promotion data)
 {
     HibernateTemplate.Update(data);
 }