예제 #1
0
        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);
            }
        }
예제 #2
0
 public void Create(Category category)
 {
     crudCategory.Create(category);
 }