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