예제 #1
0
 public void Delete(Customer data)
 {
     CustomerDAO.Delete(data);
 }
예제 #2
0
 public Customer Add(Customer data)
 {
     CustomerDAO.Add(data);
     return data;
 }
예제 #3
0
 public void Update(Customer data)
 {
     CustomerDAO.Update(data);
 }
예제 #4
0
 /// <summary>
 /// Delete Customer from database.
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public void Delete(Customer data)
 {
     HibernateTemplate.Delete(data);
 }
예제 #5
0
 /// <summary>
 /// Add Customer to database.
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public Customer Add(Customer data)
 {
     HibernateTemplate.Save(data);
     return data;
 }
예제 #6
0
 /// <summary>
 /// Update Customer to database.
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public void Update(Customer data)
 {
     HibernateTemplate.Update(data);
 }