public void ActiveDeactiveCategory(long categoryId, bool status)
 {
     using (var entities = new EazyWizyEntities())
     {
         entities.ManageCategory(categoryId, null, null, null,
             null, status, null, (int)DatabaseAction.ActiveDeactive);
     }
 }
 public void AddCategory(Category entity)
 {
     using (var entities = new EazyWizyEntities())
     {
         entities.ManageCategory(entity.CategoryId, entity.ParentCategoryId,
             entity.Name, entity.Description, entity.ImageName, entity.IsActive,
             null, (int) DatabaseAction.Insert);
     }
 }
 public void RemoveCategory(long id)
 {
     using (var entities = new EazyWizyEntities())
     {
         entities.ManageCategory(id, null, null, null, null, null, null, (int) DatabaseAction.Delete);
     }
 }