public virtual AuditLog UpdateAuditLog(AuditLog entity)
        {
            if (entity.IsTransient())
            {
                return(entity);
            }
            AuditLog other = GetAuditLog(entity.AuditLogId);

            if (entity.Equals(other))
            {
                return(entity);
            }
            string sql = @"Update AuditLog set  [ActionDate]=@ActionDate
							, [CustomerID]=@CustomerID
							, [UpdatedCustomerID]=@UpdatedCustomerID
							, [OrderNumber]=@OrderNumber
							, [Description]=@Description
							, [Details]=@Details
							, [PagePath]=@PagePath
							, [AuditGroup]=@AuditGroup 
							 where AuditLogID=@AuditLogID"                            ;

            SqlParameter[] parameterArray = new SqlParameter[] {
                new SqlParameter("@AuditLogID", entity.AuditLogId)
                , new SqlParameter("@ActionDate", entity.ActionDate)
                , new SqlParameter("@CustomerID", entity.CustomerId)
                , new SqlParameter("@UpdatedCustomerID", entity.UpdatedCustomerId)
                , new SqlParameter("@OrderNumber", entity.OrderNumber)
                , new SqlParameter("@Description", entity.Description)
                , new SqlParameter("@Details", entity.Details)
                , new SqlParameter("@PagePath", entity.PagePath)
                , new SqlParameter("@AuditGroup", entity.AuditGroup)
            };
            SqlHelper.ExecuteNonQuery(this.ConnectionString, CommandType.Text, sql, parameterArray);
            return(GetAuditLog(entity.AuditLogId));
        }