Esempio n. 1
0
 public static void AddCategory(Guid organizationId, int deptID,
                                int loginCompJuncID,
                                string name)
 {
     try
     {
         CreationCats cat = new CreationCats(organizationId);
         cat.AddNew();
         cat.DId        = deptID;
         cat.VchName    = name;
         cat.IntCreated = loginCompJuncID;
         cat.DtCreated  = DateTime.UtcNow;
         cat.BtInactive = false;
         cat.Save();
     }
     catch (SqlException ex)
     {
         throw new ApplicationException(ex.Message, ex);
     }
     catch (Exception ex)
     {
         throw new ApplicationException(ex.Message, ex);
     }
 }
Esempio n. 2
0
 public static void AddCategory(Guid organizationId, int deptID,
                                int loginCompJuncID,
                                string name)
 {
     try
     {
         CreationCats cat = new CreationCats(organizationId);
         cat.AddNew();
         cat.DId = deptID;
         cat.VchName = name;
         cat.IntCreated = loginCompJuncID;
         cat.DtCreated = DateTime.UtcNow;
         cat.BtInactive = false;
         cat.Save();
     }
     catch (SqlException ex)
     {
         throw new ApplicationException(ex.Message, ex);
     }
     catch (Exception ex)
     {
         throw new ApplicationException(ex.Message, ex);
     }
 }