Esempio n. 1
0
 public int InsertUserType(clsUserType ccm)
 {
     try
     {
         dataProvider.ExecuteNonQuery("usp_InsertUserType", ccm.UserTypeName, ccm.UserTypeAbbr, ccm.UserTypeDesc, ccm.PortalID, ccm.CreatedById, ccm.ModifiedById);
     }
     catch (Exception ex)
     {
         Exceptions.LogException(ex);
     }
     return(0);
 }
Esempio n. 2
0
        public int UpdateUserType(clsUserType ccm)
        {
            int i = 0;

            try
            {
                dataProvider.ExecuteNonQuery("usp_UpdateUserType", ccm.UserTypeId, ccm.UserTypeName, ccm.UserTypeAbbr, ccm.UserTypeDesc, ccm.PortalID, ccm.@ModifiedById);
                return(i);
            }
            catch (Exception ex)
            {
                Exceptions.LogException(ex);
            }
            return(i);
        }