public void Delete(Customer data) { CustomerDAO.Delete(data); }
public Customer Add(Customer data) { CustomerDAO.Add(data); return data; }
public void Update(Customer data) { CustomerDAO.Update(data); }
/// <summary> /// Delete Customer from database. /// </summary> /// <param name="data"></param> /// <returns></returns> public void Delete(Customer data) { HibernateTemplate.Delete(data); }
/// <summary> /// Add Customer to database. /// </summary> /// <param name="data"></param> /// <returns></returns> public Customer Add(Customer data) { HibernateTemplate.Save(data); return data; }
/// <summary> /// Update Customer to database. /// </summary> /// <param name="data"></param> /// <returns></returns> public void Update(Customer data) { HibernateTemplate.Update(data); }