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