Beispiel #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);
 }
Beispiel #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);
        }