public void Create(Category category) { try { var a = crudCategory.RetrieveByName2 <Category>(category); if (a != null) { //Category already exist throw new BussinessException(3); } else { crudCategory.Create(category); } } catch (Exception ex) { ExceptionManager.GetInstance().Process(ex); } }
public void Create(Category category) { crudCategory.Create(category); }